GLIP-Lib
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Static Public Member Functions | List of all members
Glip::CoreGL::HdlTextureFormatDescriptorsList Class Reference

Singleton handling the static list of all available HdlTextureFormatDescriptor objects. More...

#include <HdlTextureTools.hpp>

Static Public Member Functions

static int getNumDescriptors (void)
 Returns the number of known GL modes for texture formats (GL_RGB, GL_RGBA, ...). More...
 
static const
HdlTextureFormatDescriptor
get (int id)
 Access to a mode descriptor object. Will raise an exception if the index is out of range. More...
 
static const
HdlTextureFormatDescriptor
get (const GLenum &modeID)
 Access to a mode descriptor object. Will raise an exception if the mode is unknown. More...
 

Detailed Description

Singleton handling the static list of all available HdlTextureFormatDescriptor objects.

Member Function Documentation

const HdlTextureFormatDescriptor & HdlTextureFormatDescriptorsList::get ( int  id)
static

Access to a mode descriptor object. Will raise an exception if the index is out of range.

Parameters
idIndex of the desired descriptor.
Returns
A constant reference onto a HdlTextureFormatDescriptor object.
const HdlTextureFormatDescriptor & HdlTextureFormatDescriptorsList::get ( const GLenum &  mode)
static

Access to a mode descriptor object. Will raise an exception if the mode is unknown.

Parameters
modeSearched mode name.
Returns
A constant reference onto a HdlTextureFormatDescriptor object.
int HdlTextureFormatDescriptorsList::getNumDescriptors ( void  )
static

Returns the number of known GL modes for texture formats (GL_RGB, GL_RGBA, ...).

Returns
Returns the number of known GL modes.

The documentation for this class was generated from the following files: