OGRE  1.12.4
Object-Oriented Graphics Rendering Engine
Ogre::GL3PlusFBOManager Class Reference

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

#include <OgreGL3PlusFBORenderTexture.h>

+ Inheritance diagram for Ogre::GL3PlusFBOManager:

Public Member Functions

 GL3PlusFBOManager (GL3PlusRenderSystem *renderSystem)
 
 ~GL3PlusFBOManager ()
 
virtual void bind (RenderTarget *target)
 Bind a certain render target. More...
 
bool checkFormat (PixelFormat format)
 Check if a certain format is usable as FBO rendertarget format. More...
 
virtual GL3PlusFBORenderTexturecreateRenderTexture (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)
 
GL3PlusStateCacheManagergetStateCacheManager ()
 
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...
 
virtual 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 Frame Buffer Objects, and related things.

Constructor & Destructor Documentation

◆ GL3PlusFBOManager()

Ogre::GL3PlusFBOManager::GL3PlusFBOManager ( GL3PlusRenderSystem renderSystem)

◆ ~GL3PlusFBOManager()

Ogre::GL3PlusFBOManager::~GL3PlusFBOManager ( )

Member Function Documentation

◆ getBestDepthStencil() [1/2]

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

Get best depth and stencil supported for given internalFormat.

◆ createRenderTexture()

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

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ requestRenderBuffer()

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.

◆ getStateCacheManager()

GL3PlusStateCacheManager* Ogre::GL3PlusFBOManager::getStateCacheManager ( )

◆ 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.

◆ bind()

virtual void Ogre::GLRTTManager::bind ( RenderTarget target)
inlinevirtualinherited

Bind a certain render target.

Note
only needed for FBO RTTs

Reimplemented in Ogre::GLES2FBOManager, Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.

◆ unbind()

virtual void Ogre::GLRTTManager::unbind ( RenderTarget target)
inlinevirtualinherited

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.

Note
only needed for Copying or PBuffer RTTs

Reimplemented in Ogre::GLFBOManager, Ogre::GLPBRTTManager, and Ogre::GLCopyingRTTManager.

◆ getBestDepthStencil() [2/2]

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

Reimplemented in Ogre::GLES2FBOManager.

◆ 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: