GLAF
OpenGL Advanced Functionality

Back to documentation index


Texture Objects availability test

GLboolean glaf_IsTextureObjectsSupported(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 Objects support rules

  • If we're running in OpenGL 1.1 or higher, and the query of the address of the core functions is successful, the core implementation is used.
  • Otherwise, if GL_EXT_texture_object is supported, and the query of the address of the extension functions is successful, this extension is used.
  • Otherwise, the feature is unsupported.


Texture Objects 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).

TEXTURE_PRIORITY 
TEXTURE_RESIDENT
TEXTURE_BINDING_1D
TEXTURE_BINDING_2D 
TEXTURE_BINDING_3D
 

Texture Objects functions

glaf_GenTextures
glaf_DeleteTextures
glaf_IsTexture
glaf_BindTexture
glaf_AreTexturesResident
glaf_PrioritizeTextures
 

Texture Objects definitions in 'gl2glaf.h' (optional)

#define glGenTextures                   glaf_GenTextures
#define glDeleteTextures                glaf_DeleteTextures
#define glIsTexture                     glaf_IsTexture
#define glBindTexture                   glaf_BindTexture
#define glAreTexturesResident           glaf_AreTexturesResident
#define glPrioritizeTextures            glaf_PrioritizeTextures
 

Texture Objects side effects

None.

Back to documentation index
 

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