OGRE  1.10.12
Object-Oriented Graphics Rendering Engine
Ogre::GLES2FBOManager Class Reference

Factory for GL ES 2 Frame Buffer Objects, and related things. More...

#include <OgreGLES2FBORenderTexture.h>

+ Inheritance diagram for Ogre::GLES2FBOManager:

Public Member Functions

 GLES2FBOManager ()
 
 ~GLES2FBOManager ()
 
void _reload ()
 Detects all supported fbo's and recreates the tempory fbo. More...
 
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 MultiRenderTargetcreateMultiRenderTarget (const String &name)
 Create a multi render target. More...
 
virtual GLES2FBORenderTexturecreateRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)
 Create a texture rendertarget object. More...
 
void getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat)
 Get best depth and stencil supported for given internalFormat. More...
 
GLint getMaxFSAASamples ()
 
PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format. More...
 
GLuint getTemporaryFBO ()
 Get a FBO without depth/stencil for temporary use, like blitting between textures. 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 GLRTTManagergetSingleton (void)
 Get the singleton instance. More...
 
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance. More...
 

Detailed Description

Factory for GL ES 2 Frame Buffer Objects, and related things.

Constructor & Destructor Documentation

◆ GLES2FBOManager()

Ogre::GLES2FBOManager::GLES2FBOManager ( )

◆ ~GLES2FBOManager()

Ogre::GLES2FBOManager::~GLES2FBOManager ( )

Member Function Documentation

◆ bind()

void Ogre::GLES2FBOManager::bind ( RenderTarget target)
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.

◆ unbind()

void Ogre::GLES2FBOManager::unbind ( RenderTarget target)
inlinevirtual

Unbind a certain render target.

No-op for FBOs.

Implements Ogre::GLRTTManager.

◆ getBestDepthStencil()

void Ogre::GLES2FBOManager::getBestDepthStencil ( PixelFormat  internalFormat,
uint32 depthFormat,
uint32 stencilFormat 
)
virtual

Get best depth and stencil supported for given internalFormat.

Reimplemented from Ogre::GLRTTManager.

◆ createRenderTexture()

virtual GLES2FBORenderTexture* Ogre::GLES2FBOManager::createRenderTexture ( const String name,
const GLSurfaceDesc target,
bool  writeGamma,
uint  fsaa 
)
virtual

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ createMultiRenderTarget()

virtual MultiRenderTarget* Ogre::GLES2FBOManager::createMultiRenderTarget ( const String name)
virtual

Create a multi render target.

Reimplemented from Ogre::GLRTTManager.

◆ requestRenderBuffer()

GLSurfaceDesc Ogre::GLES2FBOManager::requestRenderBuffer ( GLenum  format,
uint32  width,
uint32  height,
uint  fsaa 
)

Request a render buffer.

If format is GL_NONE, return a zero buffer.

◆ getTemporaryFBO()

GLuint Ogre::GLES2FBOManager::getTemporaryFBO ( )
inline

Get a FBO without depth/stencil for temporary use, like blitting between textures.

◆ _reload()

void Ogre::GLES2FBOManager::_reload ( )

Detects all supported fbo's and recreates the tempory fbo.

◆ getMaxFSAASamples()

GLint Ogre::GLES2FBOManager::getMaxFSAASamples ( )
inline

◆ releaseRenderBuffer()

void Ogre::GLRTTManager::releaseRenderBuffer ( const GLSurfaceDesc surface)
inherited

Release a render buffer.

Ignore silently if surface.buffer is 0.

◆ checkFormat()

bool Ogre::GLRTTManager::checkFormat ( PixelFormat  format)
inlineinherited

Check if a certain format is usable as FBO rendertarget format.

◆ getSupportedAlternative()

PixelFormat Ogre::GLRTTManager::getSupportedAlternative ( PixelFormat  format)
inherited

Get the closest supported alternative format.

If format is supported, returns format.

◆ getSingleton()

static GLRTTManager& Ogre::GLRTTManager::getSingleton ( void  )
staticinherited

Get the singleton instance.

◆ getSingletonPtr()

static GLRTTManager* Ogre::GLRTTManager::getSingletonPtr ( void  )
staticinherited

Get the singleton instance.


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