OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::GLFBOManager Class Reference

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

#include <OgreGLFBORenderTexture.h>

Inheritance diagram for Ogre::GLFBOManager:

Public Member Functions

 GLFBOManager (bool atimode)
 ~GLFBOManager ()
void bind (RenderTarget *target)
 Bind a certain render target if it is a FBO.
virtual GLFBORenderTexturecreateRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa)
 Create a texture rendertarget object.
void getBestDepthStencil (PixelFormat internalFormat, GLenum *depthFormat, GLenum *stencilFormat)
 Get best depth and stencil supported for given internalFormat.
GLuint getTemporaryFBO ()
 Get a FBO without depth/stencil for temporary use, like blitting between textures.
GLSurfaceDesc requestRenderBuffer (GLenum format, uint32 width, uint32 height, uint fsaa)
 Request a render buffer.
void unbind (RenderTarget *target)
 Unbind a certain render target.
Public Member Functions inherited from Ogre::GLRTTManager
 GLRTTManager ()
virtual ~GLRTTManager ()
bool checkFormat (PixelFormat format)
 Check if a certain format is usable as FBO rendertarget format.
virtual void getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat)
PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format.
void releaseRenderBuffer (const GLSurfaceDesc &surface)
 Release a render buffer.
Public Member Functions inherited from Ogre::Singleton< GLRTTManager >
 ~Singleton (void)

Additional Inherited Members

Static Public Member Functions inherited from Ogre::GLRTTManager
static GLRTTManagergetSingleton (void)
 Get the singleton instance.
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance.
Static Public Member Functions inherited from Ogre::Singleton< GLRTTManager >
static GLRTTManagergetSingleton (void)
 Get the singleton instance.
static GLRTTManagergetSingletonPtr (void)
 Get the singleton instance.

Detailed Description

Factory for GL Frame Buffer Objects, and related things.

Constructor & Destructor Documentation

◆ GLFBOManager()

Ogre::GLFBOManager::GLFBOManager ( bool atimode)

◆ ~GLFBOManager()

Ogre::GLFBOManager::~GLFBOManager ( )

Member Function Documentation

◆ bind()

void Ogre::GLFBOManager::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.

Reimplemented from Ogre::GLRTTManager.

◆ unbind()

void Ogre::GLFBOManager::unbind ( RenderTarget * target)
inlinevirtual

Unbind a certain render target.

No-op for FBOs.

Reimplemented from Ogre::GLRTTManager.

◆ getBestDepthStencil()

void Ogre::GLFBOManager::getBestDepthStencil ( PixelFormat internalFormat,
GLenum * depthFormat,
GLenum * stencilFormat )

Get best depth and stencil supported for given internalFormat.

◆ createRenderTexture()

virtual GLFBORenderTexture * Ogre::GLFBOManager::createRenderTexture ( const String & name,
const GLSurfaceDesc & target,
bool writeGamma,
uint fsaa )
virtual

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ requestRenderBuffer()

GLSurfaceDesc Ogre::GLFBOManager::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::GLFBOManager::getTemporaryFBO ( )
inline

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


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