glGenTextures
[New
- Windows 95, OEM Service Release 2]
The glGenTextures
function generates texture names.
void glGenTextures(
GLsizei n, |
|
GLuint * textures |
|
); |
|
Parameters
n
The number of
texture names to be generated.
textures
A pointer to
the first element of an array in which the generated texture names are stored.
Remarks
The glGenTextures
function returns n texture names in the textures parameter. The
texture names are not necessarily a contiguous set of integers, however, none
of the returned names can have been in use immediately prior to calling the glGenTextures
function. The generated textures assume the dimensionality of the texture
target to which they are first bound with the glBindTexture
You cannot
include glGenTextures in display lists.
Note The glGenTextures
function is only available in OpenGL version 1.1 or later.
The following
function retrieves information related to glGenTextures:
glIsTexture
Error Codes
The following
are the error codes generated and their conditions.
Error
Code |
Condition |
GL_INVALID_VALUE
|
n was a negative value. |
GL_INVALID_OPERATION
|
glGenTextures was called between a call to glBegin and the
corresponding call to glEnd. |
See Also