GLAF
OpenGL Advanced Functionality

Back to documentation index


Color Matrix availability test

GLboolean glaf_IsColorMatrixSupported(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.
 

Color Matrix support rules

  • If we're running in OpenGL 1.2 or higher, and GL_ARB_imaging is supported, the ARB imaging implementation is used.
  • Otherwise, if GL_SGI_color_matrix is supported, this extension is used.
  • Otherwise, the feature is unsupported.


Color Matrix 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).

COLOR     
COLOR_MATRIX   
COLOR_MATRIX_STACK_DEPTH  
MAX_COLOR_MATRIX_STACK_DEPTH  
POST_COLOR_MATRIX_RED_SCALE  
POST_COLOR_MATRIX_GREEN_SCALE  
POST_COLOR_MATRIX_BLUE_SCALE  
POST_COLOR_MATRIX_ALPHA_SCALE  
POST_COLOR_MATRIX_RED_BIAS   
POST_COLOR_MATRIX_GREEN_BIAS  
POST_COLOR_MATRIX_BLUE_BIAS  
POST_COLOR_MATRIX_ALPHA_BIAS  
 

Color Matrix functions

None.
 

Color Matrix definitions in 'gl2glaf.h' (optional)

None.
 

Color Matrix side effects

None.

Back to documentation index
 

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