GLAF
OpenGL Advanced Functionality

Back to documentation index


Color Table availability test

GLboolean glaf_IsColorTableSupported(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 Table support rules

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


Color Table 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_TABLE   
POST_CONVOLUTION_COLOR_TABLE  
POST_COLOR_MATRIX_COLOR_TABLE  
PROXY_COLOR_TABLE    
PROXY_POST_CONVOLUTION_COLOR_TABLE 
PROXY_POST_COLOR_MATRIX_COLOR_TABLE 
COLOR_TABLE_SCALE   
COLOR_TABLE_BIAS    
COLOR_TABLE_FORMAT    
COLOR_TABLE_WIDTH    
COLOR_TABLE_RED_SIZE   
COLOR_TABLE_GREEN_SIZE   
COLOR_TABLE_BLUE_SIZE   
COLOR_TABLE_ALPHA_SIZE   
COLOR_TABLE_LUMINANCE_SIZE   
COLOR_TABLE_INTENSITY_SIZE   
 

Color Table functions

glaf_ColorTable
glaf_ColorTableParameteriv
glaf_ColorTableParameterfv
glaf_CopyColorTable
glaf_GetColorTable
glaf_GetColorTableParameterfv
glaf_GetColorTableParameteriv
 

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

#define glColorTable                    glaf_ColorTable
#define glColorTableParameteriv         glaf_ColorTableParameteriv
#define glColorTableParameterfv         glaf_ColorTableParameterfv
#define glCopyColorTable                glaf_CopyColorTable
#define glGetColorTable                 glaf_GetColorTable
#define glGetColorTableParameterfv      glaf_GetColorTableParameterfv
#define glGetColorTableParameteriv      glaf_GetColorTableParameteriv
 

Color Table side effects

None.

Back to documentation index
 

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