![]() |
OGRE
master
Object-Oriented Graphics Rendering Engine
|
Frame Buffer Object abstraction. More...
#include <OgreGLRenderTexture.h>
Inheritance diagram for Ogre::GLFrameBufferObjectCommon:Public Member Functions | |
| GLFrameBufferObjectCommon (int32 fsaa, GLRTTManager &) | |
| 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... | |
| void | determineFBOBufferSharingAllowed (RenderTarget &) |
| Determines and sets mAllowRenderBufferSharing based on given render target properties. 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 | setAllowRenderBufferSharing (bool) |
| Sets mAllowRenderBufferSharing, triggers re-initialization if value is different. More... | |
| void | unbindSurface (size_t attachment) |
| Unbind attachment. More... | |
Frame Buffer Object abstraction.
| Ogre::GLFrameBufferObjectCommon::GLFrameBufferObjectCommon | ( | int32 | fsaa, |
| GLRTTManager & | |||
| ) |
|
virtual |
|
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.
| void Ogre::GLFrameBufferObjectCommon::determineFBOBufferSharingAllowed | ( | RenderTarget & | ) |
Determines and sets mAllowRenderBufferSharing based on given render target properties.
| void Ogre::GLFrameBufferObjectCommon::setAllowRenderBufferSharing | ( | bool | ) |
Sets mAllowRenderBufferSharing, triggers re-initialization if value is different.
|
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.