#include "rGL.h"
#include "tError.h"
Go to the source code of this file.
Classes | |
class | rGLuintObject |
safe wrapper for GL objects classifed by GLuints (textures, render buffers) More... | |
class | rGluintObjectDummy |
unusable dummy wrapper More... | |
Defines | |
#define | rDEFINE_GLUINTOBJECT(CLASS, FUNCTION) |
#define | rDEFINE_GLUINTOBJECT_EXT(CLASS, FUNCTION) typedef rGluintObjectDummy CLASS |
Functions | |
rDEFINE_GLUINTOBJECT (rGLuintObjectTexture, Textures) | |
declare safe wrapper for texturs | |
rDEFINE_GLUINTOBJECT_EXT (rGLuintObjectRenderbuffer, RenderbuffersEXT) | |
declare safe wrapper for render buffers | |
rDEFINE_GLUINTOBJECT_EXT (rGLuintObjectFramebuffer, FramebuffersEXT) | |
declare safe wrapper for frame buffers |
#define rDEFINE_GLUINTOBJECT | ( | CLASS, | |||
FUNCTION | ) |
Value:
class CLASS: public rGLuintObject \ { \ public: \ ~CLASS(){ Delete(); } \ private: \ virtual void DoGen(){ glGen##FUNCTION( 1, &object_ ); } \ virtual void DoDelete(){ glDelete##FUNCTION( 1, &object_ ); } \ }
Definition at line 72 of file rGLuintObject.h.
#define rDEFINE_GLUINTOBJECT_EXT | ( | CLASS, | |||
FUNCTION | ) | typedef rGluintObjectDummy CLASS |
declare safe wrapper classes for GL objects handled by GLuints initialized by extensions argument CLASS: the name of the wrapper class FUNCTION: the name of the functions that hanlde the object; glGen resp. glDelete will be prepended.
Definition at line 92 of file rGLuintObject.h.
rDEFINE_GLUINTOBJECT | ( | rGLuintObjectTexture | , | |
Textures | ||||
) |
declare safe wrapper for texturs
rDEFINE_GLUINTOBJECT_EXT | ( | rGLuintObjectFramebuffer | , | |
FramebuffersEXT | ||||
) |
declare safe wrapper for frame buffers
rDEFINE_GLUINTOBJECT_EXT | ( | rGLuintObjectRenderbuffer | , | |
RenderbuffersEXT | ||||
) |
declare safe wrapper for render buffers