Manages the registration and processing of drawable GameObjects. More...
#include <DrawableManager.h>
Public Types | |
using | StorageListRef = StorageList::iterator |
Type alias for the storage list iterator. | |
Public Member Functions | |
DrawableManager (const DrawableManager &)=delete | |
DrawableManager & | operator= (const DrawableManager &)=delete |
void | Register (Drawable *dr) |
Registers a drawable GameObject. | |
void | Deregister (Drawable *dr) |
Deregisters a drawable GameObject. | |
void | ProcessElements () |
Processes the drawing of all registered GameObjects. | |
Private Types | |
using | StorageList = std::list<Drawable*> |
Type alias for the storage list of drawable GameObjects. | |
Private Attributes | |
StorageList | storageList |
The storage list of drawable GameObjects. | |
Manages the registration and processing of drawable GameObjects.
The DrawableManager class is responsible for managing the registration and processing of drawable GameObjects. It provides methods to register, deregister, and process the drawing of GameObjects.
void DrawableManager::Deregister | ( | Drawable * | dr | ) |
Deregisters a drawable GameObject.
dr | Pointer to the drawable GameObject. |
void DrawableManager::Register | ( | Drawable * | dr | ) |
Registers a drawable GameObject.
dr | Pointer to the drawable GameObject. |