GLAF
OpenGL Advanced Functionality

Back to documentation index


Constant Color Blending availability test

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

Constant Color Blending 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_EXT_blend_color is supported, and the query of the address of the extension functions is successful, this extension is used.
  • Otherwise, the feature is unsupported.


Constant Color Blending 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).

CONSTANT_COLOR   
ONE_MINUS_CONSTANT_COLOR   
CONSTANT_ALPHA    
ONE_MINUS_CONSTANT_ALPHA  
BLEND_COLOR   
 

Constant Color Blending functions

glaf_BlendColor
 

Constant Color Blending definitions in 'gl2glaf.h' (optional)

#define glBlendColor                    glaf_BlendColor
 

Constant Color Blending side effects

None.

Back to documentation index
 

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