1GLGENTEXTURES(3G) OpenGL Manual GLGENTEXTURES(3G)
2
3
4
6 glGenTextures - generate texture names
7
9 void glGenTextures(GLsizei n, GLuint * textures);
10
12 n
13 Specifies the number of texture names to be generated.
14
15 textures
16 Specifies an array in which the generated texture names are stored.
17
19 glGenTextures returns n texture names in textures. There is no
20 guarantee that the names form a contiguous set of integers; however, it
21 is guaranteed that none of the returned names was in use immediately
22 before the call to glGenTextures.
23
24 The generated textures have no dimensionality; they assume the
25 dimensionality of the texture target to which they are first bound (see
26 glBindTexture()).
27
28 Texture names returned by a call to glGenTextures are not returned by
29 subsequent calls, unless they are first deleted with
30 glDeleteTextures().
31
33 GL_INVALID_VALUE is generated if n is negative.
34
36 glIsTexture()
37
39 glBindTexture(), glCopyTexImage1D(), glCopyTexImage2D(),
40 glDeleteTextures(), glGet(), glGetTexParameter(), glTexImage1D(),
41 glTexImage2D(), glTexImage3D(), glTexParameter()
42
44 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
45 under the SGI Free Software B License. For details, see
46 http://oss.sgi.com/projects/FreeB/.
47
49 opengl.org
50
51
52
53opengl.org 06/10/2014 GLGENTEXTURES(3G)