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... | |
void | bind () |
Bind FrameBufferObject. More... | |
void | bindSurface (size_t attachment, const GL3PlusSurfaceDesc &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 () |
GL3PlusFBOManager * | getManager () |
const GL3PlusSurfaceDesc & | 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... | |
Private Member Functions | |
void | initialise () |
Initialise object (find suitable depth and stencil format). More... | |
Private Attributes | |
GL3PlusSurfaceDesc | mColour [OGRE_MAX_MULTIPLE_RENDER_TARGETS] |
GL3PlusSurfaceDesc | mDepth |
GLuint | mFB |
GL3PlusFBOManager * | mManager |
GL3PlusSurfaceDesc | mMultisampleColourBuffer |
GLuint | mMultisampleFB |
GLsizei | mNumSamples |
GL3PlusSurfaceDesc | mStencil |
Frame Buffer Object abstraction.
Definition at line 41 of file OgreGL3PlusFrameBufferObject.h.
Ogre::GL3PlusFrameBufferObject::GL3PlusFrameBufferObject | ( | GL3PlusFBOManager * | manager, |
uint | fsaa | ||
) |
Ogre::GL3PlusFrameBufferObject::~GL3PlusFrameBufferObject | ( | ) |
void Ogre::GL3PlusFrameBufferObject::attachDepthBuffer | ( | DepthBuffer * | depthBuffer | ) |
This function acts very similar to.
void Ogre::GL3PlusFrameBufferObject::bind | ( | ) |
Bind FrameBufferObject.
void Ogre::GL3PlusFrameBufferObject::bindSurface | ( | size_t | attachment, |
const GL3PlusSurfaceDesc & | target | ||
) |
Bind a surface to a certain attachment point.
attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1
void Ogre::GL3PlusFrameBufferObject::detachDepthBuffer | ( | ) |
PixelFormat Ogre::GL3PlusFrameBufferObject::getFormat | ( | ) |
GLsizei Ogre::GL3PlusFrameBufferObject::getFSAA | ( | ) |
|
inline |
Get the GL id for the FBO.
Definition at line 72 of file OgreGL3PlusFrameBufferObject.h.
|
inline |
Get the GL id for the multisample FBO.
Definition at line 74 of file OgreGL3PlusFrameBufferObject.h.
uint32 Ogre::GL3PlusFrameBufferObject::getHeight | ( | ) |
|
inline |
Definition at line 82 of file OgreGL3PlusFrameBufferObject.h.
|
inline |
Definition at line 83 of file OgreGL3PlusFrameBufferObject.h.
uint32 Ogre::GL3PlusFrameBufferObject::getWidth | ( | ) |
Accessors.
|
private |
Initialise object (find suitable depth and stencil format).
Must be called every time the bindings change. It fails with an exception (ERR_INVALIDPARAMS) if:
void Ogre::GL3PlusFrameBufferObject::swapBuffers | ( | ) |
Swap buffers - only useful when using multisample buffers.
void Ogre::GL3PlusFrameBufferObject::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
|
private |
Definition at line 93 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 90 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 87 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 85 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 89 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 88 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 86 of file OgreGL3PlusFrameBufferObject.h.
|
private |
Definition at line 91 of file OgreGL3PlusFrameBufferObject.h.