GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table )
Internal Format | Red | Green | Blue | Alpha | Luminance | Intensity |
GL_ALPHA | A | |||||
GL_LUMINANCE | R | |||||
GL_LUMINANCE_ALPHA | A | R | ||||
GL_INTENSITY | R | |||||
GL_RGB | R | G | B | |||
GL_RGBA | R | G | B | A | ||
Representation | Meaning |
r | Table index computed from R |
g | Table index computed from G |
b | Table index computed from B |
a | Table index computed from A |
L[i] | Luminance value at table index i |
I[i] | Intensity value at table index i |
R[i] | Red value at table index i |
G[i] | Green value at table index i |
B[i] | Blue value at table index i |
A[i] | Alpha value at table index i |
Resulting Texture Components | ||||
Table Internal Format | R | G | B | A |
GL_ALPHA | R | G | B | A[a] |
GL_LUMINANCE | L[r] | L[g] | L[b] | At |
GL_LUMINANCE_ALPHA | L[r] | L[g] | L[b] | A[a] |
GL_INTENSITY | I[r] | I[g] | I[b] | I[a] |
GL_RGB | R[r] | G[g] | B[b] | A |
GL_RGBA | R[r] | G[g] | B[b] | A[a] |