Manages OpenGL resources.
More...
#include <mlGLResourceManager.h>
Manages OpenGL resources.
Definition at line 28 of file mlGLResourceManager.h.
◆ GLSLProgramShaderPair
◆ GLResourceManager()
GLResourceManager::GLResourceManager |
( |
| ) |
|
◆ ~GLResourceManager()
virtual GLResourceManager::~GLResourceManager |
( |
| ) |
|
|
virtual |
◆ add()
◆ addResource()
◆ cacheContextID()
◆ cleanup()
◆ contextDestroyed()
void GLResourceManager::contextDestroyed |
( |
| ) |
|
|
protected |
forget about all resources, the shared context was destroyed
◆ destroyBuffer()
void GLResourceManager::destroyBuffer |
( |
GLuint | id | ) |
|
destroy the given vertex buffer (destroys it later if no GL context is currently active)
◆ destroyFragmentProgramARB()
void GLResourceManager::destroyFragmentProgramARB |
( |
GLuint | program | ) |
|
destroy the given fragment program id (destroys it later if no GL context is currently active)
◆ destroyFrameBuffer()
void GLResourceManager::destroyFrameBuffer |
( |
GLuint | id | ) |
|
destroy the given render buffer (destroys it later if no GL context is currently active)
◆ destroyFTFont()
void GLResourceManager::destroyFTFont |
( |
FTFont * | font | ) |
|
destroy the given font (destroys it later if no GL context is currently active)
◆ destroyGLSLProgram()
void GLResourceManager::destroyGLSLProgram |
( |
GLuint | id | ) |
|
destroy the given program (destroys it later if no GL context is currently active)
◆ destroyGLSLShader()
void GLResourceManager::destroyGLSLShader |
( |
GLuint | id | ) |
|
destroy the given shader (destroys it later if no GL context is currently active)
◆ destroyPixelBuffer()
void GLResourceManager::destroyPixelBuffer |
( |
GLuint | id | ) |
|
|
inline |
destroy the given pixel buffer (destroys it later if no GL context is currently active)
Definition at line 57 of file mlGLResourceManager.h.
◆ destroyRenderBuffer()
void GLResourceManager::destroyRenderBuffer |
( |
GLuint | id | ) |
|
destroy the given render buffer (destroys it later if no GL context is currently active)
◆ destroyTextures()
void GLResourceManager::destroyTextures |
( |
int | num, |
|
|
GLuint * | textures ) |
destroy the given texture ids (destroys them later if no GL context is currently active)
◆ destroyVertexBuffer()
void GLResourceManager::destroyVertexBuffer |
( |
GLuint | id | ) |
|
|
inline |
destroy the given pixel buffer (destroys it later if no GL context is currently active)
Definition at line 59 of file mlGLResourceManager.h.
◆ detachGLSLShader()
detach the given shader from the program (this is done later of the GL context is not currently active)
◆ disableGLSLProgram()
void GLResourceManager::disableGLSLProgram |
( |
| ) |
|
remove currently active program
◆ freeResources()
void GLResourceManager::freeResources |
( |
| ) |
|
|
protected |
free resources that could not be destroyed earlier
◆ getGLError()
GLenum GLResourceManager::getGLError |
( |
| ) |
const |
check for OpenGL error (returns GL_INVALID_OPERATION if there is no valid OpenGL context)
◆ init()
◆ isContextActive()
bool GLResourceManager::isContextActive |
( |
| ) |
const |
|
inline |
◆ lockContext()
void GLResourceManager::lockContext |
( |
| ) |
|
set that the context is locked
◆ remove()
◆ removeResource()
remove the given resource
◆ self()
◆ unlockContext()
set that the context is active
◆ GLResource
◆ _buffersToFree
std::vector<GLuint> GLResourceManager::_buffersToFree |
|
protected |
◆ _cacheContextID
◆ _contextLocked
bool GLResourceManager::_contextLocked |
|
protected |
◆ _frameBuffersToFree
std::vector<GLuint> GLResourceManager::_frameBuffersToFree |
|
protected |
◆ _FTFontsToFree
std::vector<FTFont*> GLResourceManager::_FTFontsToFree |
|
protected |
◆ _GLSLProgramsToFree
std::vector<GLuint> GLResourceManager::_GLSLProgramsToFree |
|
protected |
◆ _GLSLShadersToDetach
◆ _GLSLShadersToFree
std::vector<GLuint> GLResourceManager::_GLSLShadersToFree |
|
protected |
◆ _programsARBToFree
std::vector<GLuint> GLResourceManager::_programsARBToFree |
|
protected |
◆ _renderBuffersToFree
std::vector<GLuint> GLResourceManager::_renderBuffersToFree |
|
protected |
◆ _resources
◆ _self
◆ _texturesToFree
std::vector<GLuint> GLResourceManager::_texturesToFree |
|
protected |
The documentation for this class was generated from the following file: