![]() |
OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
|
Manager/factory for RenderTextures. More...
#include <OgreGLRenderTexture.h>
Public Member Functions | |
GLRTTManager () | |
virtual | ~GLRTTManager () |
virtual void | bind (RenderTarget *target) |
Bind a certain render target. | |
bool | checkFormat (PixelFormat format) |
Check if a certain format is usable as FBO rendertarget format. | |
virtual RenderTexture * | createRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)=0 |
Create a texture rendertarget object. | |
virtual void | getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat) |
PixelFormat | getSupportedAlternative (PixelFormat format) |
Get the closest supported alternative format. | |
void | releaseRenderBuffer (const GLSurfaceDesc &surface) |
Release a render buffer. | |
virtual void | unbind (RenderTarget *target) |
Unbind a certain render target. | |
![]() | |
Singleton (void) | |
~Singleton (void) | |
Static Public Member Functions | |
static GLRTTManager & | getSingleton (void) |
Get the singleton instance. | |
static GLRTTManager * | getSingletonPtr (void) |
Get the singleton instance. | |
![]() | |
static GLRTTManager & | getSingleton (void) |
Get the singleton instance. | |
static GLRTTManager * | getSingletonPtr (void) |
Get the singleton instance. | |
Manager/factory for RenderTextures.
Ogre::GLRTTManager::GLRTTManager | ( | ) |
|
virtual |
|
pure virtual |
Create a texture rendertarget object.
Implemented in Ogre::GLCopyingRTTManager, Ogre::GLFBOManager, Ogre::GLPBRTTManager, Ogre::GL3PlusFBOManager, and Ogre::GLES2FBOManager.
void Ogre::GLRTTManager::releaseRenderBuffer | ( | const GLSurfaceDesc & | surface | ) |
Release a render buffer.
Ignore silently if surface.buffer is 0.
|
inline |
Check if a certain format is usable as FBO rendertarget format.
|
inlinevirtual |
Bind a certain render target.
Reimplemented in Ogre::GLCopyingRTTManager, Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLES2FBOManager.
|
inlinevirtual |
Unbind a certain render target.
This is called before binding another RenderTarget, and before the context is switched. It can be used to do a copy, or just be a noop if direct binding is used.
Reimplemented in Ogre::GLCopyingRTTManager, Ogre::GLFBOManager, and Ogre::GLPBRTTManager.
|
inlinevirtual |
Reimplemented in Ogre::GLES2FBOManager.
PixelFormat Ogre::GLRTTManager::getSupportedAlternative | ( | PixelFormat | format | ) |
Get the closest supported alternative format.
If format is supported, returns format.
|
static |
Get the singleton instance.
|
static |
Get the singleton instance.