OGRE  1.12.4
Object-Oriented Graphics Rendering Engine
Ogre::GLCopyingRTTManager Class Reference

Simple, copying manager/factory for RenderTextures. More...

#include <OgreGLCopyingRenderTexture.h>

+ Inheritance diagram for Ogre::GLCopyingRTTManager:

Public Member Functions

void bind (RenderTarget *target)
 Bind a certain render target. More...
 
bool checkFormat (PixelFormat format)
 
RenderTexturecreateRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)
 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...
 
void unbind (RenderTarget *target)
 Unbind a certain render target. More...
 

Static Public Member Functions

static GLRTTManagergetSingleton (void)
 Get the singleton instance. More...
 
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance. More...
 

Detailed Description

Simple, copying manager/factory for RenderTextures.

This is only used as the last fallback if both PBuffers and FBOs aren't supported.

Member Function Documentation

◆ createRenderTexture()

RenderTexture* Ogre::GLCopyingRTTManager::createRenderTexture ( const String name,
const GLSurfaceDesc target,
bool  writeGamma,
uint  fsaa 
)
inlinevirtual

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ checkFormat()

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

◆ bind()

void Ogre::GLCopyingRTTManager::bind ( RenderTarget target)
inlinevirtual

Bind a certain render target.

Note
only needed for FBO RTTs

Reimplemented from Ogre::GLRTTManager.

◆ unbind()

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

Note
only needed for Copying or PBuffer RTTs

Reimplemented from Ogre::GLRTTManager.

◆ releaseRenderBuffer()

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

Release a render buffer.

Ignore silently if surface.buffer is 0.

◆ getBestDepthStencil()

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

Reimplemented in Ogre::GLES2FBOManager.

◆ getSupportedAlternative()

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

Get the closest supported alternative format.

If format is supported, returns format.

◆ getSingleton()

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

Get the singleton instance.

◆ getSingletonPtr()

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

Get the singleton instance.


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