OGRE  14.2
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 ( )

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::GLES2FrameBufferObject, Ogre::GL3PlusFrameBufferObject, and Ogre::GLFrameBufferObject.

◆ bindSurface()

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

Bind a surface to a certain attachment point.


◆ unbindSurface()

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

Unbind attachment.

◆ getFSAA()

int32 Ogre::GLFrameBufferObjectCommon::getFSAA ( ) const


◆ getWidth()

uint32 Ogre::GLFrameBufferObjectCommon::getWidth ( ) const

◆ getHeight()

uint32 Ogre::GLFrameBufferObjectCommon::getHeight ( ) const

◆ getFormat()

PixelFormat Ogre::GLFrameBufferObjectCommon::getFormat ( ) const

◆ getContext()

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

◆ getGLFBOID()

uint32 Ogre::GLFrameBufferObjectCommon::getGLFBOID ( ) const

Get the GL id for the FBO.

◆ getGLMultisampleFBOID()

uint32 Ogre::GLFrameBufferObjectCommon::getGLMultisampleFBOID ( ) const

Get the GL id for the multisample FBO.

◆ getSurface()

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

◆ notifyContextDestroyed()

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

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