OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::GLRTTManager Class Referenceabstract

Manager/factory for RenderTextures. More...

#include <OgreGLRenderTexture.h>

+ Inheritance diagram for Ogre::GLRTTManager:
+ Collaboration diagram for Ogre::GLRTTManager:

Public Member Functions

virtual ~GLRTTManager ()
 
virtual void bind (RenderTarget *target)=0
 Bind a certain render target. More...
 
virtual bool checkFormat (PixelFormat format)=0
 Check if a certain format is usable as rendertexture format. More...
 
virtual MultiRenderTargetcreateMultiRenderTarget (const String &name)
 Create a multi render target. More...
 
virtual RenderTexturecreateRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)=0
 Create a texture rendertarget object. More...
 
virtual void getBestDepthStencil (GLenum internalFormat, GLenum *depthFormat, GLenum *stencilFormat)
 
virtual PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format. More...
 
virtual void unbind (RenderTarget *target)=0
 Unbind a certain render target. More...
 

Static Public Member Functions

static GLRTTManagergetSingleton (void)
 
static GLRTTManagergetSingletonPtr (void)
 

Static Protected Attributes

static GLRTTManagermsSingleton
 

Detailed Description

Manager/factory for RenderTextures.

Definition at line 64 of file OgreGLRenderTexture.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Bind a certain render target.

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

virtual bool Ogre::GLRTTManager::checkFormat ( PixelFormat  format)
pure virtual

Check if a certain format is usable as rendertexture format.

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

virtual MultiRenderTarget* Ogre::GLRTTManager::createMultiRenderTarget ( const String name)
virtual

Create a multi render target.

Reimplemented in Ogre::GLFBOManager.

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

Create a texture rendertarget object.

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

virtual void Ogre::GLRTTManager::getBestDepthStencil ( GLenum  internalFormat,
GLenum *  depthFormat,
GLenum *  stencilFormat 
)
inlinevirtual

Reimplemented in Ogre::GLFBOManager.

Definition at line 87 of file OgreGLRenderTexture.h.

References GL_NONE.

static GLRTTManager & Ogre::Singleton< GLRTTManager >::getSingleton ( void  )
inlinestaticinherited

Definition at line 90 of file OgreSingleton.h.

static GLRTTManager * Ogre::Singleton< GLRTTManager >::getSingletonPtr ( void  )
inlinestaticinherited

Definition at line 92 of file OgreSingleton.h.

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

Get the closest supported alternative format.

If format is supported, returns format.

virtual void Ogre::GLRTTManager::unbind ( RenderTarget target)
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::GLCopyingRTTManager, Ogre::GLFBOManager, and Ogre::GLPBRTTManager.

Member Data Documentation

GLRTTManager * Ogre::Singleton< GLRTTManager >::msSingleton
staticprotectedinherited

Definition at line 75 of file OgreSingleton.h.


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