OGRE  13.6
Object-Oriented Graphics Rendering Engine
Ogre::GLPBRTTManager Class Reference

Manager for rendertextures and PBuffers (offscreen rendering contexts) More...

#include <OgreGLPBRenderTexture.h>

+ Inheritance diagram for Ogre::GLPBRTTManager:

Public Member Functions

 GLPBRTTManager (GLNativeSupport *support, RenderTarget *mainwindow)
 
virtual ~GLPBRTTManager ()
 
void bind (RenderTarget *target) override
 Bind a certain render target. More...
 
virtual bool checkFormat (PixelFormat format)
 Check if a certain format is usable as FBO rendertarget format. More...
 
RenderTexturecreateRenderTexture (const String &name, const GLSurfaceDesc &target, bool writeGamma, uint fsaa) override
 Create a texture rendertarget object. More...
 
GLContextgetContextFor (PixelComponentType ctype, uint32 width, uint32 height)
 Get GL rendering context for a certain component type and size. More...
 
void releasePBuffer (PixelComponentType ctype)
 Release PBuffer for a certain pixel format. More...
 
void requestPBuffer (PixelComponentType ctype, uint32 width, uint32 height)
 Create PBuffer for a certain pixel format and size. More...
 
void unbind (RenderTarget *target) override
 Unbind a certain render target. More...
 
- 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. More...
 
virtual void getBestDepthStencil (PixelFormat internalFormat, uint32 *depthFormat, uint32 *stencilFormat)
 
PixelFormat getSupportedAlternative (PixelFormat format)
 Get the closest supported alternative format. More...
 
void releaseRenderBuffer (const GLSurfaceDesc &surface)
 Release a render buffer. More...
 
- Public Member Functions inherited from Ogre::Singleton< GLRTTManager >
 Singleton (void)
 
 ~Singleton (void)
 

Additional Inherited Members

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

Detailed Description

Manager for rendertextures and PBuffers (offscreen rendering contexts)

Constructor & Destructor Documentation

◆ GLPBRTTManager()

Ogre::GLPBRTTManager::GLPBRTTManager ( GLNativeSupport support,
RenderTarget mainwindow 
)

◆ ~GLPBRTTManager()

virtual Ogre::GLPBRTTManager::~GLPBRTTManager ( )
virtual

Member Function Documentation

◆ createRenderTexture()

RenderTexture* Ogre::GLPBRTTManager::createRenderTexture ( const String name,
const GLSurfaceDesc target,
bool  writeGamma,
uint  fsaa 
)
overridevirtual

Create a texture rendertarget object.

Implements Ogre::GLRTTManager.

◆ checkFormat()

virtual bool Ogre::GLPBRTTManager::checkFormat ( PixelFormat  format)
virtual

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

◆ bind()

void Ogre::GLPBRTTManager::bind ( RenderTarget target)
overridevirtual

Bind a certain render target.

Note
only needed for FBO RTTs

Reimplemented from Ogre::GLRTTManager.

◆ unbind()

void Ogre::GLPBRTTManager::unbind ( RenderTarget target)
overridevirtual

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 from Ogre::GLRTTManager.

◆ requestPBuffer()

void Ogre::GLPBRTTManager::requestPBuffer ( PixelComponentType  ctype,
uint32  width,
uint32  height 
)

Create PBuffer for a certain pixel format and size.

◆ releasePBuffer()

void Ogre::GLPBRTTManager::releasePBuffer ( PixelComponentType  ctype)

Release PBuffer for a certain pixel format.

◆ getContextFor()

GLContext* Ogre::GLPBRTTManager::getContextFor ( PixelComponentType  ctype,
uint32  width,
uint32  height 
)

Get GL rendering context for a certain component type and size.


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