Manager for rendertextures and PBuffers (offscreen rendering contexts) More...
#include <OgreGLESPBRenderTexture.h>
Classes | |
struct | PBRef |
Reference to a PBuffer, with refcount. More... | |
Public Member Functions | |
GLESPBRTTManager (GLESSupport *support, RenderTarget *mainwindow) | |
virtual | ~GLESPBRTTManager () |
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 GLESSurfaceDesc &target, bool writeGamma, uint fsaa) |
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... | |
void | releasePBuffer (PixelComponentType ctype) |
Release PBuffer for a certain pixel format. More... | |
void | requestPBuffer (PixelComponentType ctype, size_t width, size_t 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 GLESRTTManager & | getSingleton (void) |
static GLESRTTManager * | getSingletonPtr (void) |
Protected Attributes | |
GLESContext * | 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... | |
GLESSupport * | mSupport |
GLESSupport reference, used to create PBuffers. More... | |
Static Protected Attributes | |
static GLESRTTManager * | msSingleton |
Manager for rendertextures and PBuffers (offscreen rendering contexts)
Definition at line 56 of file OgreGLESPBRenderTexture.h.
Ogre::GLESPBRTTManager::GLESPBRTTManager | ( | GLESSupport * | support, |
RenderTarget * | mainwindow | ||
) |
|
virtual |
|
virtual |
Bind a certain render target.
Implements Ogre::GLESRTTManager.
|
virtual |
Check if a certain format is usable as rendertexture format.
Implements Ogre::GLESRTTManager.
|
virtualinherited |
Create a multi render target.
Reimplemented in Ogre::GLESFBOManager.
|
virtual |
Create a texture rendertarget object.
Implements Ogre::GLESRTTManager.
|
inlinevirtualinherited |
Reimplemented in Ogre::GLESFBOManager.
Definition at line 85 of file OgreGLESRenderTexture.h.
References GL_NONE.
|
inlinestaticinherited |
Definition at line 90 of file OgreSingleton.h.
|
inlinestaticinherited |
Definition at line 92 of file OgreSingleton.h.
|
virtualinherited |
Get the closest supported alternative format.
If format is supported, returns format.
void Ogre::GLESPBRTTManager::releasePBuffer | ( | PixelComponentType | ctype | ) |
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 |
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.
|
protected |
Primary window context.
Definition at line 94 of file OgreGLESPBRenderTexture.h.
|
protected |
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.
|
staticprotectedinherited |
Definition at line 75 of file OgreSingleton.h.
|
protected |
GLESSupport reference, used to create PBuffers.
Definition at line 90 of file OgreGLESPBRenderTexture.h.