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

Frame Buffer Object abstraction. More...

#include <OgreGLES2FrameBufferObject.h>

+ Inheritance diagram for Ogre::GLES2FrameBufferObject:

Public Member Functions

 GLES2FrameBufferObject (GLES2FBOManager *manager, uint fsaa)
 
 ~GLES2FrameBufferObject ()
 
void attachDepthBuffer (DepthBuffer *depthBuffer)
 This function acts very similar to. More...
 
bool bind (bool recreateIfNeeded) override
 Bind FrameBufferObject. More...
 
void detachDepthBuffer ()
 
GLES2FBOManagergetManager ()
 
void swapBuffers ()
 Swap buffers - only useful when using multisample buffers. More...
 
- Public Member Functions inherited from Ogre::GLFrameBufferObjectCommon
 GLFrameBufferObjectCommon (int32 fsaa)
 
virtual ~GLFrameBufferObjectCommon ()
 
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

◆ GLES2FrameBufferObject()

Ogre::GLES2FrameBufferObject::GLES2FrameBufferObject ( GLES2FBOManager manager,
uint  fsaa 
)

◆ ~GLES2FrameBufferObject()

Ogre::GLES2FrameBufferObject::~GLES2FrameBufferObject ( )

Member Function Documentation

◆ bind()

bool Ogre::GLES2FrameBufferObject::bind ( bool  recreateIfNeeded)
overridevirtual

Bind FrameBufferObject.

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

Implements Ogre::GLFrameBufferObjectCommon.

◆ swapBuffers()

void Ogre::GLES2FrameBufferObject::swapBuffers ( )

Swap buffers - only useful when using multisample buffers.

◆ attachDepthBuffer()

void Ogre::GLES2FrameBufferObject::attachDepthBuffer ( DepthBuffer depthBuffer)

This function acts very similar to.

See also
GLES2FBORenderTexture::attachDepthBuffer The difference between D3D & OGL is that D3D setups the DepthBuffer before rendering, while OGL setups the DepthBuffer per FBO. So the DepthBuffer (RenderBuffer) needs to be attached for OGL.

◆ detachDepthBuffer()

void Ogre::GLES2FrameBufferObject::detachDepthBuffer ( )

◆ getManager()

GLES2FBOManager* Ogre::GLES2FrameBufferObject::getManager ( )
inline

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