.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .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[R] .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(\[dq]my_texture.png\[dq]); texture = al_get_opengl_texture(bitmap); if (texture != 0) glBindTexture(GL_TEXTURE_2D, texture); \f[R] .fi