OGRE
1.10.12
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 () |
PixelFormat | getFormat () |
GLsizei | getFSAA () |
GLuint | getGLFBOID () const |
Get the GL id for the FBO. More... | |
GLuint | getGLMultisampleFBOID () const |
Get the GL id for the multisample FBO. More... | |
uint32 | getHeight () |
GL3PlusFBOManager * | getManager () |
const GLSurfaceDesc & | getSurface (size_t attachment) |
uint32 | getWidth () |
Accessors. More... | |
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 | ( | ) |
void Ogre::GL3PlusFrameBufferObject::bindSurface | ( | size_t | attachment, |
const GLSurfaceDesc & | target | ||
) |
Bind a surface to a certain attachment point.
attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1
void Ogre::GL3PlusFrameBufferObject::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
bool Ogre::GL3PlusFrameBufferObject::bind | ( | bool | recreateIfNeeded | ) |
Bind FrameBufferObject.
Attempt to bind on incompatible GL context will cause FBO destruction and optional recreation.
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 |
Get the GL id for the FBO.
|
inline |
Get the GL id for the multisample FBO.
uint32 Ogre::GL3PlusFrameBufferObject::getWidth | ( | ) |
Accessors.
uint32 Ogre::GL3PlusFrameBufferObject::getHeight | ( | ) |
PixelFormat Ogre::GL3PlusFrameBufferObject::getFormat | ( | ) |
GLsizei Ogre::GL3PlusFrameBufferObject::getFSAA | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
References OGRE_MAX_MULTIPLE_RENDER_TARGETS.