1al_get_opengl_texture(3)                              al_get_opengl_texture(3)
2
3
4

NAME

6       al_get_opengl_texture - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_opengl.h>
10
11              GLuint al_get_opengl_texture(ALLEGRO_BITMAP *bitmap)
12

DESCRIPTION

14       Returns the OpenGL texture id internally used by the given bitmap if it
15       uses one, else 0.
16
17       Example:
18
19              bitmap = al_load_bitmap("my_texture.png");
20              texture = al_get_opengl_texture(bitmap);
21              if (texture != 0)
22                  glBindTexture(GL_TEXTURE_2D, texture);
23
24
25
26Allegro reference manual                              al_get_opengl_texture(3)
Impressum