OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Factory for GL Frame Buffer Objects, and related things. More...
#include <OgreGL3PlusFBORenderTexture.h>
Public Member Functions | |
GL3PlusFBOManager (GL3PlusRenderSystem *renderSystem) | |
~GL3PlusFBOManager () | |
void | bind (RenderTarget *target) |
Bind a certain render target if it is a FBO. More... | |
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 GL3PlusFBORenderTexture * | createRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa) |
Create a texture rendertarget object. More... | |
void | getBestDepthStencil (PixelFormat internalFormat, GLenum *depthFormat, GLenum *stencilFormat) |
Get best depth and stencil supported for given internalFormat. More... | |
virtual void | getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat) |
GL3PlusStateCacheManager * | getStateCacheManager () |
PixelFormat | getSupportedAlternative (PixelFormat format) |
Get the closest supported alternative format. More... | |
void | releaseRenderBuffer (const GLSurfaceDesc &surface) |
Release a render buffer. More... | |
GLSurfaceDesc | requestRenderBuffer (GLenum format, uint32 width, uint32 height, uint fsaa) |
Request a render buffer. More... | |
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... | |
Factory for GL Frame Buffer Objects, and related things.
Ogre::GL3PlusFBOManager::GL3PlusFBOManager | ( | GL3PlusRenderSystem * | renderSystem | ) |
Ogre::GL3PlusFBOManager::~GL3PlusFBOManager | ( | ) |
|
virtual |
Bind a certain render target if it is a FBO.
If it is not a FBO, bind the main frame buffer.
Implements Ogre::GLRTTManager.
|
inlinevirtual |
void Ogre::GL3PlusFBOManager::getBestDepthStencil | ( | PixelFormat | internalFormat, |
GLenum * | depthFormat, | ||
GLenum * | stencilFormat | ||
) |
Get best depth and stencil supported for given internalFormat.
|
virtual |
Create a texture rendertarget object.
Implements Ogre::GLRTTManager.
|
virtual |
Create a multi render target.
Reimplemented from Ogre::GLRTTManager.
GLSurfaceDesc Ogre::GL3PlusFBOManager::requestRenderBuffer | ( | GLenum | format, |
uint32 | width, | ||
uint32 | height, | ||
uint | fsaa | ||
) |
Request a render buffer.
If format is GL_NONE, return a zero buffer.
GL3PlusStateCacheManager* Ogre::GL3PlusFBOManager::getStateCacheManager | ( | ) |
|
inherited |
Release a render buffer.
Ignore silently if surface.buffer is 0.
|
inlineinherited |
Check if a certain format is usable as FBO rendertarget format.
|
inlinevirtualinherited |
Reimplemented in Ogre::GLES2FBOManager.
|
inherited |
Get the closest supported alternative format.
If format is supported, returns format.
|
staticinherited |
Get the singleton instance.
|
staticinherited |
Get the singleton instance.