1GLGENTEXTURES(3G) GLGENTEXTURES(3G)
2
3
4
6 glGenTextures - generate texture names
7
8
10 void glGenTextures( GLsizei n,
11 GLuint *textures )
12
13
15 n Specifies the number of texture names to be generated.
16
17 textures Specifies an array in which the generated texture names are
18 stored.
19
21 glGenTextures returns n texture names in textures. There is no guaran‐
22 tee that the names form a contiguous set of integers; however, it is
23 guaranteed that none of the returned names was in use immediately
24 before the call to glGenTextures.
25
26 The generated textures have no dimensionality; they assume the dimen‐
27 sionality of the texture target to which they are first bound (see
28 glBindTexture).
29
30 Texture names returned by a call to glGenTextures are not returned by
31 subsequent calls, unless they are first deleted with glDeleteTextures.
32
34 glGenTextures is available only if the GL version is 1.1 or greater.
35
37 GL_INVALID_VALUE is generated if n is negative.
38
39 GL_INVALID_OPERATION is generated if glGenTextures is executed between
40 the execution of glBegin and the corresponding execution of glEnd.
41
43 glIsTexture
44
46 glBindTexture(3G), glCopyTexImage1D(3G), glCopyTexImage2D(3G),
47 glDeleteTextures(3G), glGet(3G), glGetTexParameter(3G),
48 glTexImage1D(3G), glTexImage2D(3G), glTexImage3D(3G),
49 glTexParameter(3G)
50
51
52
53 GLGENTEXTURES(3G)