An off-screen rendering context. More...
#include <OgreGLPBuffer.h>
Public Member Functions | |
GLPBuffer (PixelComponentType format, uint32 width, uint32 height) | |
virtual | ~GLPBuffer () |
virtual GLContext * | getContext ()=0 |
Get the GL context that needs to be active to render to this PBuffer. More... | |
PixelComponentType | getFormat () |
uint32 | getHeight () |
uint32 | getWidth () |
Static Public Member Functions | |
static PixelComponentType | getPixelComponentType (PixelFormat fmt) |
Get PBuffer component format for an OGRE pixel format. More... | |
Protected Attributes | |
PixelComponentType | mFormat |
uint32 | mHeight |
uint32 | mWidth |
An off-screen rendering context.
These contexts are always RGBA for simplicity, speed and convience, but the component format is configurable.
Definition at line 38 of file OgreGLPBuffer.h.
Ogre::GLPBuffer::GLPBuffer | ( | PixelComponentType | format, |
uint32 | width, | ||
uint32 | height | ||
) |
|
virtual |
|
pure virtual |
Get the GL context that needs to be active to render to this PBuffer.
Implemented in Ogre::GLXPBuffer, Ogre::OSXPBuffer, and Ogre::Win32PBuffer.
PixelComponentType Ogre::GLPBuffer::getFormat | ( | ) |
Definition at line 48 of file OgreGLPBuffer.h.
uint32 Ogre::GLPBuffer::getHeight | ( | void | ) |
Definition at line 50 of file OgreGLPBuffer.h.
|
static |
Get PBuffer component format for an OGRE pixel format.
uint32 Ogre::GLPBuffer::getWidth | ( | void | ) |
Definition at line 49 of file OgreGLPBuffer.h.
|
protected |
Definition at line 56 of file OgreGLPBuffer.h.
|
protected |
Definition at line 57 of file OgreGLPBuffer.h.
|
protected |
Definition at line 57 of file OgreGLPBuffer.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:42