OGRE  1.10.12
Object-Oriented Graphics Rendering Engine
Ogre::GLPBRTTManager Class Reference

Manager for rendertextures and PBuffers (offscreen rendering contexts) More...

#include <OgreGLPBRenderTexture.h>

+ Inheritance diagram for Ogre::GLPBRTTManager:

Public Member Functions

 GLPBRTTManager (GLSupport *support, RenderTarget *mainwindow)
 
virtual ~GLPBRTTManager ()
 
virtual void bind (RenderTarget *target)
 Bind a certain render target. More...
 
virtual bool checkFormat (PixelFormat format)
 Check if a certain format is usable as FBO rendertarget 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)
 Create a texture rendertarget object. More...
 
virtual void getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat)
 
GLContextgetContextFor (PixelComponentType ctype, uint32 width, uint32 height)
 Get GL rendering context for a certain component type and size. More...
 
PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format. More...
 
void releasePBuffer (PixelComponentType ctype)
 Release PBuffer for a certain pixel format. More...
 
void releaseRenderBuffer (const GLSurfaceDesc &surface)
 Release a render buffer. More...
 
void requestPBuffer (PixelComponentType ctype, uint32 width, uint32 height)
 Create PBuffer for a certain pixel format and size. More...
 
virtual 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

Manager for rendertextures and PBuffers (offscreen rendering contexts)

Constructor & Destructor Documentation

◆ GLPBRTTManager()

Ogre::GLPBRTTManager::GLPBRTTManager ( GLSupport support,
RenderTarget mainwindow 
)

◆ ~GLPBRTTManager()

virtual Ogre::GLPBRTTManager::~GLPBRTTManager ( )
virtual

Member Function Documentation

◆ createRenderTexture()

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

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ checkFormat()

virtual bool Ogre::GLPBRTTManager::checkFormat ( PixelFormat  format)
virtual

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

◆ bind()

virtual void Ogre::GLPBRTTManager::bind ( RenderTarget target)
virtual

Bind a certain render target.

Implements Ogre::GLRTTManager.

◆ unbind()

virtual void Ogre::GLPBRTTManager::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.

Implements Ogre::GLRTTManager.

◆ requestPBuffer()

void Ogre::GLPBRTTManager::requestPBuffer ( PixelComponentType  ctype,
uint32  width,
uint32  height 
)

Create PBuffer for a certain pixel format and size.

◆ releasePBuffer()

void Ogre::GLPBRTTManager::releasePBuffer ( PixelComponentType  ctype)

Release PBuffer for a certain pixel format.

◆ getContextFor()

GLContext* Ogre::GLPBRTTManager::getContextFor ( PixelComponentType  ctype,
uint32  width,
uint32  height 
)

Get GL rendering context for a certain component type and size.

◆ 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.

◆ createMultiRenderTarget()

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

Create a multi render target.

Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, and Ogre::GL3PlusFBOManager.

◆ 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: