Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Ogre::GLPBRTTManager Class Reference

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

#include <OgreGLPBRenderTexture.h>

Inheritance diagram for Ogre::GLPBRTTManager:
Inheritance graph
[legend]

Classes

struct  PBRef
 Reference to a PBuffer, with refcount. More...
 

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 rendertexture format. More...
 
virtual MultiRenderTarget * createMultiRenderTarget (const String &name)
 Create a multi render target. More...
 
virtual RenderTexture * createRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)
 Create a texture rendertarget object. More...
 
virtual void getBestDepthStencil (GLenum internalFormat, GLenum *depthFormat, GLenum *stencilFormat)
 
GLContext * getContextFor (PixelComponentType ctype, uint32 width, uint32 height)
 Get GL rendering context for a certain component type and size. More...
 
virtual PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format. More...
 
void releasePBuffer (PixelComponentType ctype)
 Release PBuffer for a certain pixel format. 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 GLRTTManager & getSingleton (void)
 
static GLRTTManager * getSingletonPtr (void)
 

Protected Attributes

GLContext * mMainContext
 Primary window context. More...
 
RenderTarget * mMainWindow
 Primary window reference. More...
 
PBRef mPBuffers [PCT_COUNT]
 Type to map each component type to a PBuffer. More...
 
GLSupport * mSupport
 GLSupport reference, used to create PBuffers. More...
 

Static Protected Attributes

static GLRTTManager * msSingleton
 

Detailed Description

Manager for rendertextures and PBuffers (offscreen rendering contexts)

Definition at line 53 of file OgreGLPBRenderTexture.h.

Constructor & Destructor Documentation

Ogre::GLPBRTTManager::GLPBRTTManager ( GLSupport *  support,
RenderTarget *  mainwindow 
)
virtual Ogre::GLPBRTTManager::~GLPBRTTManager ( )
virtual

Member Function Documentation

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

Bind a certain render target.

Implements Ogre::GLRTTManager.

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

Check if a certain format is usable as rendertexture format.

Implements Ogre::GLRTTManager.

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

Create a multi render target.

Reimplemented in Ogre::GLFBOManager.

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

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

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

Reimplemented in Ogre::GLFBOManager.

Definition at line 87 of file OgreGLRenderTexture.h.

References GL_NONE.

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

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

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

Definition at line 90 of file OgreSingleton.h.

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

Definition at line 92 of file OgreSingleton.h.

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

Get the closest supported alternative format.

If format is supported, returns format.

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

Release PBuffer for a certain pixel format.

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

Create PBuffer for a certain pixel format and size.

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.

Member Data Documentation

GLContext* Ogre::GLPBRTTManager::mMainContext
protected

Primary window context.

Definition at line 93 of file OgreGLPBRenderTexture.h.

RenderTarget* Ogre::GLPBRTTManager::mMainWindow
protected

Primary window reference.

Definition at line 91 of file OgreGLPBRenderTexture.h.

PBRef Ogre::GLPBRTTManager::mPBuffers[PCT_COUNT]
protected

Type to map each component type to a PBuffer.

Definition at line 102 of file OgreGLPBRenderTexture.h.

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

Definition at line 75 of file OgreSingleton.h.

GLSupport* Ogre::GLPBRTTManager::mSupport
protected

GLSupport reference, used to create PBuffers.

Definition at line 89 of file OgreGLPBRenderTexture.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Mar 18 2014 19:15:42