OGRE  1.11.6
Object-Oriented Graphics Rendering Engine
Ogre::GLFrameBufferObjectCommon Class Referenceabstract

Frame Buffer Object abstraction. More...

#include <OgreGLRenderTexture.h>

+ Inheritance diagram for Ogre::GLFrameBufferObjectCommon:

Public Member Functions

 GLFrameBufferObjectCommon (int32 fsaa)
 
virtual ~GLFrameBufferObjectCommon ()
 
virtual bool bind (bool recreateIfNeeded)=0
 Bind FrameBufferObject. More...
 
void bindSurface (size_t attachment, const GLSurfaceDesc &target)
 Bind a surface to a certain attachment point. More...
 
GLContextgetContext () const
 
PixelFormat getFormat () const
 
int32 getFSAA () const
 Accessors. More...
 
uint32 getGLFBOID () const
 Get the GL id for the FBO. More...
 
uint32 getGLMultisampleFBOID () const
 Get the GL id for the multisample FBO. More...
 
uint32 getHeight () const
 
const GLSurfaceDescgetSurface (size_t attachment) const
 
uint32 getWidth () const
 
void notifyContextDestroyed (GLContext *context)
 
void unbindSurface (size_t attachment)
 Unbind attachment. More...
 

Detailed Description

Frame Buffer Object abstraction.

Constructor & Destructor Documentation

◆ GLFrameBufferObjectCommon()

Ogre::GLFrameBufferObjectCommon::GLFrameBufferObjectCommon ( int32  fsaa)

◆ ~GLFrameBufferObjectCommon()

virtual Ogre::GLFrameBufferObjectCommon::~GLFrameBufferObjectCommon ( )
inlinevirtual

Member Function Documentation

◆ bind()

virtual bool Ogre::GLFrameBufferObjectCommon::bind ( bool  recreateIfNeeded)
pure virtual

Bind FrameBufferObject.

Attempt to bind on incompatible GL context will cause FBO destruction and optional recreation.

Implemented in Ogre::GL3PlusFrameBufferObject, Ogre::GLES2FrameBufferObject, and Ogre::GLFrameBufferObject.

◆ bindSurface()

void Ogre::GLFrameBufferObjectCommon::bindSurface ( size_t  attachment,
const GLSurfaceDesc target 
)

Bind a surface to a certain attachment point.

attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1

◆ unbindSurface()

void Ogre::GLFrameBufferObjectCommon::unbindSurface ( size_t  attachment)

Unbind attachment.

◆ getFSAA()

int32 Ogre::GLFrameBufferObjectCommon::getFSAA ( ) const
inline

Accessors.

◆ getWidth()

uint32 Ogre::GLFrameBufferObjectCommon::getWidth ( ) const

◆ getHeight()

uint32 Ogre::GLFrameBufferObjectCommon::getHeight ( ) const

◆ getFormat()

PixelFormat Ogre::GLFrameBufferObjectCommon::getFormat ( ) const

◆ getContext()

GLContext* Ogre::GLFrameBufferObjectCommon::getContext ( ) const
inline

◆ getGLFBOID()

uint32 Ogre::GLFrameBufferObjectCommon::getGLFBOID ( ) const
inline

Get the GL id for the FBO.

◆ getGLMultisampleFBOID()

uint32 Ogre::GLFrameBufferObjectCommon::getGLMultisampleFBOID ( ) const
inline

Get the GL id for the multisample FBO.

◆ getSurface()

const GLSurfaceDesc& Ogre::GLFrameBufferObjectCommon::getSurface ( size_t  attachment) const
inline

◆ notifyContextDestroyed()

void Ogre::GLFrameBufferObjectCommon::notifyContextDestroyed ( GLContext context)
inline

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