OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Manager for rendertextures and PBuffers (offscreen rendering contexts) More...
#include <OgreGLPBRenderTexture.h>
Public Member Functions | |
GLPBRTTManager (GLNativeSupport *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 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 (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat) |
GLContext * | getContextFor (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 GLRTTManager & | getSingleton (void) |
Get the singleton instance. More... | |
static GLRTTManager * | getSingletonPtr (void) |
Get the singleton instance. More... | |
Manager for rendertextures and PBuffers (offscreen rendering contexts)
Ogre::GLPBRTTManager::GLPBRTTManager | ( | GLNativeSupport * | support, |
RenderTarget * | mainwindow | ||
) |
|
virtual |
|
virtual |
Create a texture rendertarget object.
Implements Ogre::GLRTTManager.
|
virtual |
Check if a certain format is usable as FBO rendertarget format.
|
virtual |
Bind a certain render target.
Implements Ogre::GLRTTManager.
|
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.
void Ogre::GLPBRTTManager::requestPBuffer | ( | PixelComponentType | ctype, |
uint32 | width, | ||
uint32 | height | ||
) |
Create PBuffer for a certain pixel format and size.
void Ogre::GLPBRTTManager::releasePBuffer | ( | PixelComponentType | ctype | ) |
Release PBuffer for a certain pixel format.
GLContext* Ogre::GLPBRTTManager::getContextFor | ( | PixelComponentType | ctype, |
uint32 | width, | ||
uint32 | height | ||
) |
Get GL rendering context for a certain component type and size.
|
inherited |
Release a render buffer.
Ignore silently if surface.buffer is 0.
|
inlinevirtualinherited |
Reimplemented in Ogre::GLES2FBOManager.
|
virtualinherited |
Create a multi render target.
Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, and Ogre::GL3PlusFBOManager.
|
inherited |
Get the closest supported alternative format.
If format is supported, returns format.
|
staticinherited |
Get the singleton instance.
|
staticinherited |
Get the singleton instance.