[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glGenTexturesEXT Subroutine


Generates texture names.


OpenGL C bindings library: libGL.a

C Syntax

void glGenTexturesEXT(GLsizei n, 
         GLuint *textures)


n The number of texture names to be generated.
textures An array in which the generated texture names are stored.


glGenTexturesEXT returns n texture names in textures. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to glGenTexturesEXT.

The generated textures have no dimensionality; they assume the dimensionality of the texture target to which they are first bound (see glBindTextureEXT).

Texture names returned by a call to glGenTexturesEXT will not be returned by subsequent calls, unless they are first deleted with glDeleteTexturesEXT.

glGenTexturesEXT is not included in display lists.


glGenTexturesEXT is part of the EXT_texture_object extension, not part of the core GL command set. If GL_EXT_texture_object is included in the string returned by glGetString, when called with argument GL_EXTENSIONS, extension EXT_texture_object is supported by the connection.


GL_INVALID_VALUE is generated if n is negative.

GL_INVALID_OPERATION is generated if glGenTexturesEXT is executed between the execution of glBegin and the corresponding execution of glEnd.

Associated Gets



/usr/include/GL/glext.h Contains extensions to C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBindTextureEXT subroutine, glDeleteTexturesEXT subroutine, glGet subroutine, glGetTexParameter subroutine, glTexImage1D subroutine, glTexImage2D subroutine, glTexImage3DEXT subroutine, glTexParameter subroutine.

[ Previous | Next | Contents | Glossary | Home | Search ]