Next | Prev | Up | Top | Contents | Index
Using Packed Pixels
To use packed pixels, provide one of the types listed in Table 7-1 as the type parameter to glDrawPixels(), glReadPixels(), and so on.
Types That Use Packed Pixels
Parameter Token Value | GL Data Type |
---|
GL_UNSIGNED_BYTE_3_3_2_EXT | GLubyte |
GL_UNSIGNED_SHORT_4_4_4_4_EXT | GLushort |
GL_UNSIGNED_SHORT_5_5_5_1_EXT | GLushort |
GL_UNSIGNED_INT_8_8_8_8_EXT | GLuint |
GL_UNSIGNED_INT_10_10_10_2_EXT | GLuint |
The already available types for glReadPixels(), glDrawPixels(), and so on are listed in Table 8-2 "Data Types for glReadPixels or glDrawPixels," in the OpenGL Programming Guide.
Next | Prev | Up | Top | Contents | Index