#include <RboManager.h>

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