GLAF
OpenGL Advanced Functionality

Back to documentation index


Texture Cube Map availability test

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

Texture Cube Map support rules

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


Texture Cube Map 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).

NORMAL_MAP     
REFLECTION_MAP    
TEXTURE_CUBE_MAP    
TEXTURE_BINDING_CUBE_MAP   
TEXTURE_CUBE_MAP_POSITIVE_X  
TEXTURE_CUBE_MAP_NEGATIVE_X  
TEXTURE_CUBE_MAP_POSITIVE_Y  
TEXTURE_CUBE_MAP_NEGATIVE_Y  
TEXTURE_CUBE_MAP_POSITIVE_Z  
TEXTURE_CUBE_MAP_NEGATIVE_Z  
PROXY_TEXTURE_CUBE_MAP   
MAX_CUBE_MAP_TEXTURE_SIZE  
 

Texture Cube Map functions

None.
 

Texture Cube Map definitions in 'gl2glaf.h' (optional)

None.
 

Texture Cube Map side effects

None.
 

Back to documentation index
 

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