OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Frame Buffer Object abstraction. More...
#include <OgreGL3PlusFrameBufferObject.h>
Public Member Functions | |
GL3PlusFrameBufferObject (GL3PlusFBOManager *manager, uint fsaa) | |
~GL3PlusFrameBufferObject () | |
void | attachDepthBuffer (DepthBuffer *depthBuffer) |
This function acts very similar to. More... | |
bool | bind (bool recreateIfNeeded) |
Bind FrameBufferObject. More... | |
void | bindSurface (size_t attachment, const GLSurfaceDesc &target) |
Bind a surface to a certain attachment point. More... | |
void | detachDepthBuffer () |
GLContext * | getContext () 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 |
GL3PlusFBOManager * | getManager () |
const GLSurfaceDesc & | getSurface (size_t attachment) const |
uint32 | getWidth () const |
void | notifyContextDestroyed (GLContext *context) |
void | swapBuffers () |
Swap buffers - only useful when using multisample buffers. More... | |
void | unbindSurface (size_t attachment) |
Unbind attachment. More... | |
Frame Buffer Object abstraction.
Ogre::GL3PlusFrameBufferObject::GL3PlusFrameBufferObject | ( | GL3PlusFBOManager * | manager, |
uint | fsaa | ||
) |
Ogre::GL3PlusFrameBufferObject::~GL3PlusFrameBufferObject | ( | ) |
|
virtual |
Bind FrameBufferObject.
Attempt to bind on incompatible GL context will cause FBO destruction and optional recreation.
Implements Ogre::GLFrameBufferObjectCommon.
void Ogre::GL3PlusFrameBufferObject::swapBuffers | ( | ) |
Swap buffers - only useful when using multisample buffers.
void Ogre::GL3PlusFrameBufferObject::attachDepthBuffer | ( | DepthBuffer * | depthBuffer | ) |
This function acts very similar to.
void Ogre::GL3PlusFrameBufferObject::detachDepthBuffer | ( | ) |
|
inline |
|
inherited |
Bind a surface to a certain attachment point.
attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1
|
inherited |
Unbind attachment.
|
inlineinherited |
Accessors.
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Get the GL id for the FBO.
|
inlineinherited |
Get the GL id for the multisample FBO.
|
inlineinherited |
|
inlineinherited |
References OGRE_MAX_MULTIPLE_RENDER_TARGETS.