![]() |
OGRE
master
Object-Oriented Graphics Rendering Engine
|
Manager/factory for RenderTextures. More...
#include <OgreGLRenderTexture.h>
Inheritance diagram for Ogre::GLRTTManager:Public Member Functions | |
| GLRTTManager () | |
| virtual | ~GLRTTManager () |
| virtual void | bind (RenderTarget *target) |
| Bind a certain render target. More... | |
| bool | checkFormat (PixelFormat format) |
| Check if a certain format is usable as FBO rendertarget format. More... | |
| virtual GLSurfaceDesc | createNewRenderBuffer (unsigned format, uint32 width, uint32 height, uint fsaa) |
| Creates a new render buffer. 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... | |
| GLSurfaceDesc | requestRenderBuffer (unsigned format, uint32 width, uint32 height, uint fsaa) |
| Request a render buffer. More... | |
| virtual void | unbind (RenderTarget *target) |
| Unbind a certain render target. More... | |
Public Member Functions inherited from Ogre::Singleton< GLRTTManager > | |
| Singleton (void) | |
| ~Singleton (void) | |
Static Public Member Functions | |
| static GLRTTManager & | getSingleton (void) |
| Get the singleton instance. More... | |
| static GLRTTManager * | getSingletonPtr (void) |
| Get the singleton instance. More... | |
Static Public Member Functions inherited from Ogre::Singleton< GLRTTManager > | |
| 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.
|
inlinevirtual |
Bind a certain render target.
Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.
|
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::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.
|
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.
| GLSurfaceDesc Ogre::GLRTTManager::requestRenderBuffer | ( | unsigned | format, |
| uint32 | width, | ||
| uint32 | height, | ||
| uint | fsaa | ||
| ) |
Request a render buffer.
If format is GL_NONE, return a zero buffer.
|
inlinevirtual |
Creates a new render buffer.
Caller takes ownership.
Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, and Ogre::GL3PlusFBOManager.