OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
Frame Buffer Object abstraction. More...
#include <OgreGLFrameBufferObject.h>
Public Member Functions | |
GLFrameBufferObject (GLFBOManager *manager, uint fsaa) | |
~GLFrameBufferObject () | |
void | attachDepthBuffer (DepthBuffer *depthBuffer) |
This function acts very similar to. More... | |
void | bind () |
Bind FrameBufferObject. More... | |
void | bindSurface (size_t attachment, const GLSurfaceDesc &target) |
Bind a surface to a certain attachment point. More... | |
void | detachDepthBuffer () |
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 () |
GLFBOManager * | getManager () |
const GLSurfaceDesc & | getSurface (size_t attachment) |
uint32 | getWidth () |
Accessors. More... | |
void | swapBuffers () |
Swap buffers - only useful when using multisample buffers. More... | |
void | unbindSurface (size_t attachment) |
Unbind attachment. More... | |
Frame Buffer Object abstraction.
Ogre::GLFrameBufferObject::GLFrameBufferObject | ( | GLFBOManager * | manager, |
uint | fsaa | ||
) |
Ogre::GLFrameBufferObject::~GLFrameBufferObject | ( | ) |
void Ogre::GLFrameBufferObject::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::GLFrameBufferObject::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
void Ogre::GLFrameBufferObject::bind | ( | ) |
Bind FrameBufferObject.
void Ogre::GLFrameBufferObject::swapBuffers | ( | ) |
Swap buffers - only useful when using multisample buffers.
void Ogre::GLFrameBufferObject::attachDepthBuffer | ( | DepthBuffer * | depthBuffer | ) |
This function acts very similar to.
void Ogre::GLFrameBufferObject::detachDepthBuffer | ( | ) |
|
inline |
Get the GL id for the FBO.
|
inline |
Get the GL id for the multisample FBO.
uint32 Ogre::GLFrameBufferObject::getWidth | ( | ) |
Accessors.
uint32 Ogre::GLFrameBufferObject::getHeight | ( | ) |
PixelFormat Ogre::GLFrameBufferObject::getFormat | ( | ) |
GLsizei Ogre::GLFrameBufferObject::getFSAA | ( | ) |
|
inline |
|
inline |
References OGRE_MAX_MULTIPLE_RENDER_TARGETS.