OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::GLPBuffer Class Referenceabstract

An off-screen rendering context. More...

#include <OgreGLPBuffer.h>

+ Inheritance diagram for Ogre::GLPBuffer:

Public Member Functions

 GLPBuffer (PixelComponentType format, uint32 width, uint32 height)
 
virtual ~GLPBuffer ()
 
virtual GLContextgetContext ()=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
 

Detailed Description

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.

Constructor & Destructor Documentation

Ogre::GLPBuffer::GLPBuffer ( PixelComponentType  format,
uint32  width,
uint32  height 
)
virtual Ogre::GLPBuffer::~GLPBuffer ( )
virtual

Member Function Documentation

virtual GLContext* Ogre::GLPBuffer::getContext ( )
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 ( )
inline

Definition at line 48 of file OgreGLPBuffer.h.

uint32 Ogre::GLPBuffer::getHeight ( void  )
inline

Definition at line 50 of file OgreGLPBuffer.h.

static PixelComponentType Ogre::GLPBuffer::getPixelComponentType ( PixelFormat  fmt)
static

Get PBuffer component format for an OGRE pixel format.

uint32 Ogre::GLPBuffer::getWidth ( void  )
inline

Definition at line 49 of file OgreGLPBuffer.h.

Member Data Documentation

PixelComponentType Ogre::GLPBuffer::mFormat
protected

Definition at line 56 of file OgreGLPBuffer.h.

uint32 Ogre::GLPBuffer::mHeight
protected

Definition at line 57 of file OgreGLPBuffer.h.

uint32 Ogre::GLPBuffer::mWidth
protected

Definition at line 57 of file OgreGLPBuffer.h.


The documentation for this class was generated from the following file: