T
glTexImage1D
Chapter 18
438
• GL_INVALID_VALUE may be generated if level is greater than log
2
max, where max
is the returned value of GL_MAX_TEXTURE_SIZE.
• GL_INVALID_VALUE is generated if internalformat is not 1, 2, 3, 4, or one of the
accepted resolution and format symbolic constants.
• GL_INVALID_VALUE is generated if width is less than 0 or greater than 2 +
GL_MAX_TEXTURE_SIZE, or if it cannot be represented as 2
n
+2× border for some
integer value of n.
• GL_INVALID_VALUE is generated if border is not 0 or 1.
• GL_INVALID_OPERATION is generated if glTexImage1D is executed between the
execution of glBegin and the corresponding execution of glEnd.
Associated Gets
glGetTexImage
glIsEnabled with argument GL_TEXTURE_1D
See Also
glCopyPixels,
glCopyTexImage1D,
glCopyTexImage2D,
glCopyTexSubImage1D,
glCopyTexSubImage2D,
glDrawPixels,
glPixelStore,
glPixelTransfer,
glTexEnv,
glTexGen,
glTexImage2D,
glTexSubImage1D,
glTexSubImage2D,
glTexParameter