Frame Buffer Object abstraction. More...
#include <OgreGLESFrameBufferObject.h>
Public Member Functions | |
GLESFrameBufferObject (GLESFBOManager *manager, uint fsaa) | |
~GLESFrameBufferObject () | |
void | bindSurface (size_t attachment, const GLESSurfaceDesc &target) |
Bind a surface to a certain attachment point. | |
void | unbindSurface (size_t attachment) |
Unbind attachment. | |
void | bind () |
Bind FrameBufferObject. | |
void | swapBuffers () |
Swap buffers - only useful when using multisample buffers. | |
void | attachDepthBuffer (DepthBuffer *depthBuffer) |
This function acts very similar to. | |
void | detachDepthBuffer () |
size_t | getWidth () |
Accessors. | |
size_t | getHeight () |
PixelFormat | getFormat () |
GLsizei | getFSAA () |
GLESFBOManager * | getManager () |
const GLESSurfaceDesc & | getSurface (size_t attachment) |
Private Member Functions | |
void | initialise () |
Initialise object (find suitable depth and stencil format). | |
Private Attributes | |
GLESFBOManager * | mManager |
GLsizei | mNumSamples |
GLuint | mFB |
GLuint | mMultisampleFB |
GLESSurfaceDesc | mMultisampleColourBuffer |
GLESSurfaceDesc | mDepth |
GLESSurfaceDesc | mStencil |
GLESSurfaceDesc | mColour [OGRE_MAX_MULTIPLE_RENDER_TARGETS] |
Frame Buffer Object abstraction.
Definition at line 41 of file OgreGLESFrameBufferObject.h.
Ogre::GLESFrameBufferObject::GLESFrameBufferObject | ( | GLESFBOManager * | manager, |
uint | fsaa | ||
) |
void Ogre::GLESFrameBufferObject::attachDepthBuffer | ( | DepthBuffer * | depthBuffer | ) |
This function acts very similar to.
void Ogre::GLESFrameBufferObject::bind | ( | ) |
Bind FrameBufferObject.
void Ogre::GLESFrameBufferObject::bindSurface | ( | size_t | attachment, |
const GLESSurfaceDesc & | target | ||
) |
Bind a surface to a certain attachment point.
attachment: 0..OGRE_MAX_MULTIPLE_RENDER_TARGETS-1
GLsizei Ogre::GLESFrameBufferObject::getFSAA | ( | ) |
size_t Ogre::GLESFrameBufferObject::getHeight | ( | ) |
Definition at line 77 of file OgreGLESFrameBufferObject.h.
const GLESSurfaceDesc& Ogre::GLESFrameBufferObject::getSurface | ( | size_t | attachment | ) |
Definition at line 78 of file OgreGLESFrameBufferObject.h.
size_t Ogre::GLESFrameBufferObject::getWidth | ( | ) |
Accessors.
void Ogre::GLESFrameBufferObject::initialise | ( | ) | [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:
Swap buffers - only useful when using multisample buffers.
void Ogre::GLESFrameBufferObject::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
Definition at line 88 of file OgreGLESFrameBufferObject.h.
Definition at line 85 of file OgreGLESFrameBufferObject.h.
GLuint Ogre::GLESFrameBufferObject::mFB [private] |
Definition at line 82 of file OgreGLESFrameBufferObject.h.
Definition at line 80 of file OgreGLESFrameBufferObject.h.
Definition at line 84 of file OgreGLESFrameBufferObject.h.
GLuint Ogre::GLESFrameBufferObject::mMultisampleFB [private] |
Definition at line 83 of file OgreGLESFrameBufferObject.h.
GLsizei Ogre::GLESFrameBufferObject::mNumSamples [private] |
Definition at line 81 of file OgreGLESFrameBufferObject.h.
Definition at line 86 of file OgreGLESFrameBufferObject.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:24