Interface for OpenGl resource with following meaning:
More...
#include <OpenGl_Resource.hxx>
Public Member Functions |
| OpenGl_Resource () |
| Empty constructor.
|
virtual | ~OpenGl_Resource () |
| Destructor. Inheritors should call Clean (NULL) within it.
|
virtual void | Release (const OpenGl_Context *theGlCtx)=0 |
| Release GPU resources. Notice that implementation should be SAFE for several consecutive calls (thus should invalidate internal structures / ids to avoid multiple-free errors).
|
Detailed Description
- object can be constructed at any time;
- should be explicitly Initialized within active OpenGL context;
- should be explicitly Released within active OpenGL context (virtual Release() method);
- can be destroyed at any time. Destruction of object with unreleased GPU resources will cause leaks which will be ignored in release mode and will immediately stop program execution in debug mode using assert.
Constructor & Destructor Documentation
Member Function Documentation
The documentation for this class was generated from the following file: