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 ValueGL Data Type
GL_UNSIGNED_BYTE_3_3_2_EXTGLubyte
GL_UNSIGNED_SHORT_4_4_4_4_EXTGLushort
GL_UNSIGNED_SHORT_5_5_5_1_EXTGLushort
GL_UNSIGNED_INT_8_8_8_8_EXTGLuint
GL_UNSIGNED_INT_10_10_10_2_EXTGLuint

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