Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
Ogre::GLESPBRTTManager Class Reference

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

#include <OgreGLESPBRenderTexture.h>

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

List of all members.

Classes

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

Public Member Functions

 GLESPBRTTManager (GLESSupport *support, RenderTarget *mainwindow)
virtual ~GLESPBRTTManager ()
virtual RenderTexturecreateRenderTexture (const String &name, const GLESSurfaceDesc &target, bool writeGamma, uint fsaa)
virtual bool checkFormat (PixelFormat format)
virtual void bind (RenderTarget *target)
virtual void unbind (RenderTarget *target)
void requestPBuffer (PixelComponentType ctype, size_t width, size_t height)
 Create PBuffer for a certain pixel format and size.
void releasePBuffer (PixelComponentType ctype)
 Release PBuffer for a certain pixel format.
virtual void getBestDepthStencil (GLenum internalFormat, GLenum *depthFormat, GLenum *stencilFormat)
virtual MultiRenderTargetcreateMultiRenderTarget (const String &name)
 Create a multi render target.
virtual PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format.

Static Public Member Functions

static GLESRTTManagergetSingleton (void)
static GLESRTTManagergetSingletonPtr (void)

Protected Attributes

GLESSupportmSupport
 GLESSupport reference, used to create PBuffers.
RenderTargetmMainWindow
 Primary window reference.
GLESContextmMainContext
 Primary window context.
PBRef mPBuffers [PCT_COUNT]
 Type to map each component type to a PBuffer.

Static Protected Attributes

static GLESRTTManagermsSingleton

Detailed Description

Manager for rendertextures and PBuffers (offscreen rendering contexts)

Definition at line 56 of file OgreGLESPBRenderTexture.h.


Constructor & Destructor Documentation


Member Function Documentation

virtual void Ogre::GLESPBRTTManager::bind ( RenderTarget target) [virtual]

Bind a certain render target.

Implements Ogre::GLESRTTManager.

virtual bool Ogre::GLESPBRTTManager::checkFormat ( PixelFormat  format) [virtual]

Check if a certain format is usable as rendertexture format.

Implements Ogre::GLESRTTManager.

virtual MultiRenderTarget* Ogre::GLESRTTManager::createMultiRenderTarget ( const String name) [virtual, inherited]

Create a multi render target.

Reimplemented in Ogre::GLESFBOManager.

virtual RenderTexture* Ogre::GLESPBRTTManager::createRenderTexture ( const String name,
const GLESSurfaceDesc target,
bool  writeGamma,
uint  fsaa 
) [virtual]

Create a texture rendertarget object.

Implements Ogre::GLESRTTManager.

virtual void Ogre::GLESRTTManager::getBestDepthStencil ( GLenum  internalFormat,
GLenum *  depthFormat,
GLenum *  stencilFormat 
) [virtual, inherited]

Reimplemented in Ogre::GLESFBOManager.

Definition at line 85 of file OgreGLESRenderTexture.h.

References GL_NONE.

static GLESRTTManager & Ogre::Singleton< GLESRTTManager >::getSingleton ( void  ) [static, inherited]

Definition at line 90 of file OgreSingleton.h.

static GLESRTTManager * Ogre::Singleton< GLESRTTManager >::getSingletonPtr ( void  ) [static, inherited]

Definition at line 92 of file OgreSingleton.h.

virtual PixelFormat Ogre::GLESRTTManager::getSupportedAlternative ( PixelFormat  format) [virtual, inherited]

Get the closest supported alternative format.

If format is supported, returns format.

Release PBuffer for a certain pixel format.

void Ogre::GLESPBRTTManager::requestPBuffer ( PixelComponentType  ctype,
size_t  width,
size_t  height 
)

Create PBuffer for a certain pixel format and size.

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


Member Data Documentation

Primary window context.

Definition at line 94 of file OgreGLESPBRenderTexture.h.

Primary window reference.

Definition at line 92 of file OgreGLESPBRenderTexture.h.

Type to map each component type to a PBuffer.

Definition at line 103 of file OgreGLESPBRenderTexture.h.

GLESRTTManager * Ogre::Singleton< GLESRTTManager >::msSingleton [static, protected, inherited]

Definition at line 75 of file OgreSingleton.h.

GLESSupport reference, used to create PBuffers.

Definition at line 90 of file OgreGLESPBRenderTexture.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 Fri May 25 2012 21:49:25