OGRE
1.11.6
Object-Oriented Graphics Rendering Engine
|
Frame Buffer Object abstraction. More...
#include <OgreGLRenderTexture.h>
Public Member Functions | |
GLFrameBufferObjectCommon (int32 fsaa) | |
virtual | ~GLFrameBufferObjectCommon () |
virtual bool | bind (bool recreateIfNeeded)=0 |
Bind FrameBufferObject. More... | |
void | bindSurface (size_t attachment, const GLSurfaceDesc &target) |
Bind a surface to a certain attachment point. More... | |
GLContext * | getContext () const |
PixelFormat | getFormat () const |
int32 | getFSAA () const |
Accessors. More... | |
uint32 | getGLFBOID () const |
Get the GL id for the FBO. More... | |
uint32 | getGLMultisampleFBOID () const |
Get the GL id for the multisample FBO. More... | |
uint32 | getHeight () const |
const GLSurfaceDesc & | getSurface (size_t attachment) const |
uint32 | getWidth () const |
void | notifyContextDestroyed (GLContext *context) |
void | unbindSurface (size_t attachment) |
Unbind attachment. More... | |
Frame Buffer Object abstraction.
Ogre::GLFrameBufferObjectCommon::GLFrameBufferObjectCommon | ( | int32 | fsaa | ) |
|
inlinevirtual |
|
pure virtual |
Bind FrameBufferObject.
Attempt to bind on incompatible GL context will cause FBO destruction and optional recreation.
Implemented in Ogre::GL3PlusFrameBufferObject, Ogre::GLES2FrameBufferObject, and Ogre::GLFrameBufferObject.
void Ogre::GLFrameBufferObjectCommon::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::GLFrameBufferObjectCommon::unbindSurface | ( | size_t | attachment | ) |
Unbind attachment.
|
inline |
Accessors.
uint32 Ogre::GLFrameBufferObjectCommon::getWidth | ( | ) | const |
uint32 Ogre::GLFrameBufferObjectCommon::getHeight | ( | ) | const |
PixelFormat Ogre::GLFrameBufferObjectCommon::getFormat | ( | ) | const |
|
inline |
|
inline |
Get the GL id for the FBO.
|
inline |
Get the GL id for the multisample FBO.
|
inline |
|
inline |
References OGRE_MAX_MULTIPLE_RENDER_TARGETS.