GLAF
OpenGL Advanced Functionality

Back to documentation index


Packed Pixels availability test

GLboolean glaf_IsPackedPixelsSupported(void)

This function returns GL_TRUE if the feature is supported or GL_FALSE otherwise. Calling the functions of an unsupported feature or using its enumerants may crash the application, or generate OpenGL errors, or even undefined behaviour, so you should never use a feature without testing its availability first.
 

Packed Pixels support rules

  • If we're running in OpenGL 1.2 or higher, the core implementation is used.
  • Otherwise, if GL_EXT_packed_pixels is supported, this extension is used.
  • Otherwise, the feature is unsupported.


Packed Pixels enumerants

(Add either a 'GLAF_' or 'GL_' prefix before each enumerant. GLAF enumerants are always defined, while GL ones depend on the version of your include files).

UNSIGNED_BYTE_3_3_2   
UNSIGNED_SHORT_4_4_4_4   
UNSIGNED_SHORT_5_5_5_1   
UNSIGNED_INT_8_8_8_8   
UNSIGNED_INT_10_10_10_2   
 

Packed Pixels functions

None.
 

Packed Pixels definitions in 'gl2glaf.h' (optional)

None.
 

Packed Pixels side effects

None.
 

Back to documentation index
 

Copyright (C) 2001 César Blecua Udías