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... | |
Private Member Functions | |
void | initialise () |
Initialise object (find suitable depth and stencil format). More... | |
Private Attributes | |
GLSurfaceDesc | mColour [OGRE_MAX_MULTIPLE_RENDER_TARGETS] |
GLSurfaceDesc | mDepth |
GLuint | mFB |
GLFBOManager * | mManager |
GLSurfaceDesc | mMultisampleColourBuffer |
GLuint | mMultisampleFB |
GLsizei | mNumSamples |
GLSurfaceDesc | mStencil |
Frame Buffer Object abstraction.
Definition at line 38 of file OgreGLFrameBufferObject.h.
Ogre::GLFrameBufferObject::GLFrameBufferObject | ( | GLFBOManager * | manager, |
uint | fsaa | ||
) |
Ogre::GLFrameBufferObject::~GLFrameBufferObject | ( | ) |
void Ogre::GLFrameBufferObject::attachDepthBuffer | ( | DepthBuffer * | depthBuffer | ) |
This function acts very similar to.
void Ogre::GLFrameBufferObject::bind | ( | ) |
Bind FrameBufferObject.
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::detachDepthBuffer | ( | ) |
PixelFormat Ogre::GLFrameBufferObject::getFormat | ( | ) |
GLsizei Ogre::GLFrameBufferObject::getFSAA | ( | ) |
GLuint Ogre::GLFrameBufferObject::getGLFBOID | ( | ) | const |
Get the GL id for the FBO.
Definition at line 69 of file OgreGLFrameBufferObject.h.
GLuint Ogre::GLFrameBufferObject::getGLMultisampleFBOID | ( | ) | const |
Get the GL id for the multisample FBO.
Definition at line 71 of file OgreGLFrameBufferObject.h.
uint32 Ogre::GLFrameBufferObject::getHeight | ( | ) |
GLFBOManager* Ogre::GLFrameBufferObject::getManager | ( | ) |
Definition at line 79 of file OgreGLFrameBufferObject.h.
const GLSurfaceDesc& Ogre::GLFrameBufferObject::getSurface | ( | size_t | attachment | ) |
Definition at line 80 of file OgreGLFrameBufferObject.h.
uint32 Ogre::GLFrameBufferObject::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::GLFrameBufferObject::swapBuffers | ( | ) |
Swap buffers - only useful when using multisample buffers.
void Ogre::GLFrameBufferObject::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
|
private |
Definition at line 90 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 87 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 84 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 82 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 86 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 85 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 83 of file OgreGLFrameBufferObject.h.
|
private |
Definition at line 88 of file OgreGLFrameBufferObject.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Mar 18 2014 19:15:41