OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Manager/factory for RenderTextures. More...
#include <OgreGLRenderTexture.h>
Public Member Functions | |
GLRTTManager () | |
virtual | ~GLRTTManager () |
virtual void | bind (RenderTarget *target)=0 |
Bind a certain render target. More... | |
bool | checkFormat (PixelFormat format) |
Check if a certain format is usable as FBO rendertarget format. More... | |
virtual MultiRenderTarget * | createMultiRenderTarget (const String &name) |
Create a multi render target. More... | |
virtual RenderTexture * | createRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)=0 |
Create a texture rendertarget object. More... | |
virtual void | getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat) |
PixelFormat | getSupportedAlternative (PixelFormat format) |
Get the closest supported alternative format. More... | |
void | releaseRenderBuffer (const GLSurfaceDesc &surface) |
Release a render buffer. More... | |
virtual void | unbind (RenderTarget *target)=0 |
Unbind a certain render target. More... | |
Static Public Member Functions | |
static GLRTTManager & | getSingleton (void) |
Get the singleton instance. More... | |
static GLRTTManager * | getSingletonPtr (void) |
Get the singleton instance. More... | |
Manager/factory for RenderTextures.
Ogre::GLRTTManager::GLRTTManager | ( | ) |
|
virtual |
|
pure virtual |
Create a texture rendertarget object.
Implemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GL3PlusFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.
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.
|
pure virtual |
Bind a certain render target.
Implemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GL3PlusFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.
|
pure virtual |
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.
Implemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GL3PlusFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.
|
inlinevirtual |
Reimplemented in Ogre::GLES2FBOManager.
|
virtual |
Create a multi render target.
Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, and Ogre::GL3PlusFBOManager.
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.