GLAF
OpenGL Advanced Functionality

Back to documentation index


SubTexture availability test

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

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


SubTexture enumerants

None.
 

SubTexture functions

glaf_TexSubImage1D
glaf_TexSubImage2D
 

SubTexture definitions in 'gl2glaf.h' (optional)

#define glTexSubImage1D                 glaf_TexSubImage1D
#define glTexSubImage2D                 glaf_TexSubImage2D
 

SubTexture side effects

None.

Back to documentation index
 

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