glGenTextures Function

Syntax

GL_APICALL void GL_APIENTRY glGenTextures(
     GLsizei n,
     GLuint * textures
);

Parameters

Name Description
in n Number of texture objects to generate
out textures Array storing the generated texture objects

Return Values

No values are returned.

Description

Generates texture objects.

Set n the number of objects to generate. Set textures to the array used to store the generated objects.

When a texture object is generated, it is not yet decided whether it will be used as a texture, as a lookup table, or as a texture state collection. It can be used for any of these.

This function generates the following errors.

GL_INVALID_VALUEThe n argument is negative.
GL_OUT_OF_MEMORYFailed to allocate the management region.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL