OGRE  1.12.13
Object-Oriented Graphics Rendering Engine
Ogre::GLRTTManager Class Referenceabstract

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 RenderTexturecreateRenderTexture (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)
 Unbind a certain render target. More...
 
- Public Member Functions inherited from Ogre::Singleton< GLRTTManager >
 Singleton (void)
 
 ~Singleton (void)
 

Static Public Member Functions

static GLRTTManagergetSingleton (void)
 Get the singleton instance. More...
 
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance. More...
 
- Static Public Member Functions inherited from Ogre::Singleton< GLRTTManager >
static GLRTTManagergetSingleton (void)
 Get the singleton instance. More...
 
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance. More...
 

Detailed Description

Manager/factory for RenderTextures.

Constructor & Destructor Documentation

◆ GLRTTManager()

Ogre::GLRTTManager::GLRTTManager ( )

◆ ~GLRTTManager()

virtual Ogre::GLRTTManager::~GLRTTManager ( )
virtual

Member Function Documentation

◆ createRenderTexture()

virtual RenderTexture* Ogre::GLRTTManager::createRenderTexture ( const String name,
const GLSurfaceDesc target,
bool  writeGamma,
uint  fsaa 
)
pure virtual

◆ releaseRenderBuffer()

void Ogre::GLRTTManager::releaseRenderBuffer ( const GLSurfaceDesc surface)

Release a render buffer.

Ignore silently if surface.buffer is 0.

◆ checkFormat()

bool Ogre::GLRTTManager::checkFormat ( PixelFormat  format)
inline

Check if a certain format is usable as FBO rendertarget format.

◆ bind()

virtual void Ogre::GLRTTManager::bind ( RenderTarget target)
inlinevirtual

Bind a certain render target.

Note
only needed for FBO RTTs

Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.

◆ unbind()

virtual void Ogre::GLRTTManager::unbind ( RenderTarget target)
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.

Note
only needed for Copying or PBuffer RTTs

Reimplemented in Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.

◆ getBestDepthStencil()

virtual void Ogre::GLRTTManager::getBestDepthStencil ( PixelFormat  internalFormat,
uint32 depthFormat,
uint32 stencilFormat 
)
inlinevirtual

Reimplemented in Ogre::GLES2FBOManager.

◆ getSupportedAlternative()

PixelFormat Ogre::GLRTTManager::getSupportedAlternative ( PixelFormat  format)

Get the closest supported alternative format.

If format is supported, returns format.

◆ getSingleton()

static GLRTTManager& Ogre::GLRTTManager::getSingleton ( void  )
static

Get the singleton instance.

◆ getSingletonPtr()

static GLRTTManager* Ogre::GLRTTManager::getSingletonPtr ( void  )
static

Get the singleton instance.


The documentation for this class was generated from the following file: