FboManager Class Reference

#include <FboManager.h>

Inheritance diagram for FboManager:

EventListener Object

List of all members.

Public Member Functions

void registerFbo (struct fboEntry *const data)
 Registers a FBO for use in the Texture Manager.
void unregisterFbo (const string &identifier)
 Unregisters a FBO.
void unregisterFbo (struct fboEntry *const data)
 Unregisters a FBO.
void processEvent (SDL_Event &event)
 A method to deal with SDL_Event.
struct fboEntrygetEntry (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 FboManagergetInstance ()
 The singleton getter.

Private Member Functions

 FboManager ()
 The constructor.
 FboManager (const FboManager &source)
 The copy constructor.
 ~FboManager ()
 The destructor.
void createFbo (struct fboEntry *entry)
 Creates a new FBO.
void reload ()
 Recreate FBO's after resize.

Private Attributes

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

Static Private Attributes

static FboManagerinstance = 0
 The singleton instance.


Constructor & Destructor Documentation

FboManager::FboManager (  )  [private]

The constructor.

Initializes the texture manager.

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

The copy constructor.

Should not be called.

FboManager::~FboManager (  )  [private]

The destructor.

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


Member Function Documentation

void FboManager::createFbo ( struct fboEntry entry  )  [private]

Creates a new FBO.

Allocates the FBO in memory and creates it with OpenGl

Parameters:
entry the entry of the FBO to be created

void FboManager::reload (  )  [private]

Recreate FBO's after resize.

Things to be done after OpenGl context has been oblitterated

FboManager * FboManager::getInstance (  )  [static]

The singleton getter.

The only way to access the manager

void FboManager::registerFbo ( struct fboEntry *const   data  ) 

Registers a FBO for use in the Texture Manager.

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

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

void FboManager::unregisterFbo ( const string &  identifier  ) 

Unregisters a FBO.

Removes an FBO 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 FboManager::unregisterFbo ( struct fboEntry *const   data  ) 

Unregisters a FBO.

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

A method to deal with SDL_Event.

Implements EventListener.

struct fboEntry * FboManager::getEntry ( const string &  identifier  )  [read]

Returns the handle to an specific fboEntry.

string FboManager::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Implements EventListener.

string FboManager::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 FboManager::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Implements EventListener.


Member Data Documentation

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

The singleton instance.

vector<fboEntry*> FboManager::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:33 2008 for Firefly by  doxygen 1.5.6