logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glCreateTextures - create texture objects

C Specification

voidglCreateTextures(GLenumtarget,GLsizein,GLuint*textures);

Description

glCreateTextures returns n previously unused texture names in textures, each representing a new texture
       object of the dimensionality and type specified by target and initialized to the default values for that
       texture type.

       target must be one of GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY,
       GL_TEXTURE_2D_ARRAY, GL_TEXTURE_RECTANGLE, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_CUBE_MAP_ARRAY,
       GL_TEXTURE_BUFFER, GL_TEXTURE_2D_MULTISAMPLE or GL_TEXTURE_2D_MULTISAMPLE_ARRAY.

Errors

GL_INVALID_ENUM is generated if target is not one of the allowable values.

       GL_INVALID_VALUE is generated if n is negative.

Name

       glCreateTextures - create texture objects

Parameters

target
           Specifies the effective texture target of each created texture.

       n
           Number of texture objects to create.

       textures
           Specifies an array in which names of the new texture objects are stored.

See Also

glBindTexture(), glDeleteTextures(), glGenTextures(), glGet(), glGetTexParameter(), glIsTexture(),
       glTexBuffer(), glTexImage1D(), glTexImage2D(), glTexImage2DMultisample(), glTexImage3D(),
       glTexImage3DMultisample(), glTexParameter()

Version Support

       ┌──────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                  │                OpenGLVersion                                         │
       ├──────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature          │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name             │     │     │     │     │     │     │     │     │     │     │     │     │
       ├──────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glCreateTextures │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
       └──────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also