#include <FboManager.h>

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 fboEntry * | getEntry (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 FboManager * | getInstance () |
| 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 FboManager * | instance = 0 |
| The singleton instance. | |
| 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.
| void FboManager::createFbo | ( | struct fboEntry * | entry | ) | [private] |
Creates a new FBO.
Allocates the FBO in memory and creates it with OpenGl
| 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.
| 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.
| 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] |
| struct fboEntry * FboManager::getEntry | ( | const string & | identifier | ) | [read] |
Returns the handle to an specific fboEntry.
| string FboManager::toString | ( | ) | const [virtual] |
Returns a textual representation.
Implements EventListener.
| string FboManager::className | ( | ) | const [virtual] |
Returns the class name of the object.
Implements EventListener.
| enum classId FboManager::classId | ( | ) | const [virtual] |
FboManager * FboManager::instance = 0 [static, private] |
The singleton instance.
vector<fboEntry*> FboManager::objects [private] |
The place to store all information about loaded render buffers.
1.5.6