.\" Automatically generated by Pandoc 2.2.1 .\" .TH "al_get_opengl_texture" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_get_opengl_texture \- Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include\ GLuint\ al_get_opengl_texture(ALLEGRO_BITMAP\ *bitmap) \f[] .fi .SH DESCRIPTION .PP Returns the OpenGL texture id internally used by the given bitmap if it uses one, else 0. .PP Example: .IP .nf \f[C] bitmap\ =\ al_load_bitmap("my_texture.png"); texture\ =\ al_get_opengl_texture(bitmap); if\ (texture\ !=\ 0) \ \ \ \ glBindTexture(GL_TEXTURE_2D,\ texture); \f[] .fi