BALL::VIEW::FrameBuffer Class Reference

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

List of all members.


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

Constructor & Destructor Documentation

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

Constructs new FrameBuffer instance with the specified data and format.

virtual BALL::VIEW::FrameBuffer::~FrameBuffer (  )  [inline, virtual]

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


Member Function Documentation

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

Returns const pointer to the data of this buffer

References data.

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

Returns pointer to the data of this buffer

References data.

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

Returns the format of this buffer

References format.

void BALL::VIEW::FrameBuffer::setData ( void *  data  )  [inline, protected]

Sets pointer to the data of this buffer

void BALL::VIEW::FrameBuffer::setFormat ( const FrameBufferFormat format  )  [inline, protected]

Sets the format of this buffer


Member Data Documentation

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

Referenced by getData().

The format of this buffer.

Referenced by getFormat().