BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
BALL::VIEW::FrameBuffer Class Reference

#include <BALL/VIEW/RENDERING/renderTarget.h>

Public Member Functions

 FrameBuffer (void *data, const FrameBufferFormat &format)
 
virtual ~FrameBuffer ()
 
void * getData ()
 
const void * getData () const
 
const FrameBufferFormatgetFormat () const
 

Protected Member Functions

void setData (void *data)
 
void setFormat (const FrameBufferFormat &format)
 

Private Attributes

void * data
 
FrameBufferFormat format
 

Detailed Description

Definition at line 175 of file renderTarget.h.

Constructor & Destructor Documentation

BALL::VIEW::FrameBuffer::FrameBuffer ( void *  data,
const FrameBufferFormat format 
)
inline

Constructs new FrameBuffer instance with the specified data and format.

Definition at line 182 of file renderTarget.h.

virtual BALL::VIEW::FrameBuffer::~FrameBuffer ( )
inlinevirtual

You can override this if you want the data array to be deleted with the FrameBuffer.

Definition at line 190 of file renderTarget.h.

Member Function Documentation

void* BALL::VIEW::FrameBuffer::getData ( )
inline

Returns pointer to the data of this buffer

Definition at line 193 of file renderTarget.h.

const void* BALL::VIEW::FrameBuffer::getData ( ) const
inline

Returns const pointer to the data of this buffer

Definition at line 196 of file renderTarget.h.

const FrameBufferFormat& BALL::VIEW::FrameBuffer::getFormat ( ) const
inline

Returns the format of this buffer

Definition at line 199 of file renderTarget.h.

void BALL::VIEW::FrameBuffer::setData ( void *  data)
inlineprotected

Sets pointer to the data of this buffer

Definition at line 204 of file renderTarget.h.

void BALL::VIEW::FrameBuffer::setFormat ( const FrameBufferFormat format)
inlineprotected

Sets the format of this buffer

Definition at line 207 of file renderTarget.h.

Member Data Documentation

void* BALL::VIEW::FrameBuffer::data
private

This points to the memory area where the rendering results should be written to (the first pixel of the result).

Definition at line 214 of file renderTarget.h.

FrameBufferFormat BALL::VIEW::FrameBuffer::format
private

The format of this buffer.

Definition at line 219 of file renderTarget.h.