GLAF
OpenGL Advanced Functionality

Back to documentation index


Texture Internal Formats availability test

GLboolean glaf_IsTextureFormatsSupported(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 Internal Formats support rules

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


Texture Internal Formats 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).

ALPHA4     
ALPHA8   
ALPHA12 
ALPHA16     
LUMINANCE4     
LUMINANCE8     
LUMINANCE12    
LUMINANCE16    
LUMINANCE4_ALPHA4    
LUMINANCE6_ALPHA2    
LUMINANCE8_ALPHA8    
LUMINANCE12_ALPHA4    
LUMINANCE12_ALPHA12   
LUMINANCE16_ALPHA16  
INTENSITY     
INTENSITY4     
INTENSITY8     
INTENSITY12    
INTENSITY16    
RGB4     
RGB5     
RGB8     
RGB10     
RGB12     
RGB16     
RGBA2     
RGBA4     
RGB5_A1     
RGBA8     
RGB10_A2     
RGBA12     
RGBA16     
TEXTURE_RED_SIZE    
TEXTURE_GREEN_SIZE    
TEXTURE_BLUE_SIZE    
TEXTURE_ALPHA_SIZE    
TEXTURE_LUMINANCE_SIZE   
TEXTURE_INTENSITY_SIZE   
PROXY_TEXTURE_1D    
PROXY_TEXTURE_2D    
 

Texture Internal Formats functions

None.
 

Texture Internal Formats definitions in 'gl2glaf.h' (optional)

None.
 

Texture Internal Formats side effects

None.
 

Back to documentation index
 

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