SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
DrawableManager Class Reference

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
 
DrawableManageroperator= (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.
 

Detailed Description

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.

Member Function Documentation

◆ Deregister()

void DrawableManager::Deregister ( Drawable * dr)

Deregisters a drawable GameObject.

Parameters
drPointer to the drawable GameObject.
Here is the call graph for this function:

◆ Register()

void DrawableManager::Register ( Drawable * dr)

Registers a drawable GameObject.

Parameters
drPointer to the drawable GameObject.
Here is the call graph for this function:

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