RboManager Class Reference

#include <RboManager.h>

Inheritance diagram for RboManager:

EventListener Object

List of all members.

Public Member Functions

void registerRbo (struct rboEntry *const data)
 Registers a texture for use in the Texture Manager.
void unregisterRbo (const string &identifier)
 Unregisters a texture.
void unregisterRbo (struct rboEntry *const data)
 Unregisters a texture.
void processEvent (SDL_Event &event)
 A method to deal with SDL_Event.
struct rboEntrygetEntry (const string &identifier)
 Returns the handle to an specific fboEntry.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.

Static Public Member Functions

static RboManagergetInstance ()
 The singleton getter.

Private Member Functions

 RboManager ()
 The constructor.
 RboManager (const RboManager &source)
 The copy constructor.
 ~RboManager ()
 The destructor.
void createRbo (struct rboEntry *entry)
 Creates a new RBO.
void reload ()
 Recreate RBO's after resize.

Private Attributes

vector< rboEntry * > objects
 The place to store all information about loaded render buffers.

Static Private Attributes

static RboManagerinstance = 0
 The singleton instance.


Constructor & Destructor Documentation

RboManager::RboManager (  )  [private]

The constructor.

Initializes the texture manager.

RboManager::RboManager ( const RboManager source  )  [private]

The copy constructor.

Should not be called.

RboManager::~RboManager (  )  [private]

The destructor.

Destroyes the rbo manager and frees all memory occupied by fbo's. Should only be called for program termination.


Member Function Documentation

void RboManager::createRbo ( struct rboEntry entry  )  [private]

Creates a new RBO.

Allocates the RBO in memory and creates it with OpenGl

Parameters:
entry the entry of the RBO to be created

void RboManager::reload (  )  [private]

Recreate RBO's after resize.

Things to be done after OpenGl context has been oblitterated

RboManager * RboManager::getInstance (  )  [static]

The singleton getter.

The only way to access the manager

void RboManager::registerRbo ( struct rboEntry *const   data  ) 

Registers a texture for use in the Texture Manager.

Adds a RBO if not already present, otherwise increases its count.

Parameters:
identifier The string by which the rbo is later identified

void RboManager::unregisterRbo ( const string &  identifier  ) 

Unregisters a texture.

Removes an RBO from memory if no longer used by other objects, otherwise decreases its count.

Parameters:
identifier Must be an identifier already registered otherwise the call will have no effect.

void RboManager::unregisterRbo ( struct rboEntry *const   data  ) 

Unregisters a texture.

void RboManager::processEvent ( SDL_Event &  event  )  [virtual]

A method to deal with SDL_Event.

Implements EventListener.

struct rboEntry * RboManager::getEntry ( const string &  identifier  )  [read]

Returns the handle to an specific fboEntry.

string RboManager::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Implements EventListener.

string RboManager::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Implements EventListener.

enum classId RboManager::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Implements EventListener.


Member Data Documentation

RboManager * RboManager::instance = 0 [static, private]

The singleton instance.

vector<rboEntry*> RboManager::objects [private]

The place to store all information about loaded render buffers.


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

Generated on Mon Jul 7 13:30:35 2008 for Firefly by  doxygen 1.5.6