CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
ConsoleScene Class Reference
Inheritance diagram for ConsoleScene:
Scene::Scene

Public Member Functions

void OnLoad () override
 Called when scene is loaded.
 
- Public Member Functions inherited from Scene::Scene
 Scene (const std::string &sceneName)
 Constructor.
 
virtual ~Scene ()=default
 Virtual destructor.
 
const std::string & GetName () const
 Get scene name.
 
bool CanExitWithKey () const
 Check if scene can be exited with a key.
 
void SetCanExitWithKey (bool value)
 Set if scene can be exited with a key.
 
SceneManager * GetSceneManager () const
 Get scene manager.
 
void SetSceneManager (SceneManager *manager)
 Set scene manager.
 
void SetInputManager (Input::InputManager *manager)
 Set input manager for scene and all elements.
 
void AddElement (Objects::Object *element)
 Add new element to scene.
 
virtual void Update ()
 Updates scene and all elements.
 
void RemoveElement (size_t index)
 Remove element at specified index.
 
void RemoveElementByInstance (Objects::Object *element)
 Remove specific element instance.
 
int GetElementIndex (Objects::Object *element) const
 Get index of specific element.
 
std::vector< Objects::Object * > GetElements () const
 Get all elements in scene.
 
Objects::Object * GetElement (size_t index) const
 Get element at specific index.
 
u32 GetBackgroundColor () const
 Get background color.
 
void SetBackgroundColor (u32 newColor)
 Set background color.
 
virtual void OnUnload ()
 Called when scene is unloaded.
 

Additional Inherited Members

- Protected Attributes inherited from Scene::Scene
std::vector< Objects::Object * > elements
 List of objects in the scene.
 
bool isLoaded = false
 Flag indicating if scene is loaded.
 
std::string name
 Unique name of the scene.
 
bool canExit = false
 Flag indicating if scene can be exited.
 
SceneManager * sceneManager = nullptr
 Pointer to scene manager.
 
Input::InputManager * inputManager = nullptr
 Pointer to input manager.
 
u32 backgroundColor = Colors::clrBlack
 Background color of the scene.
 

Member Function Documentation

◆ OnLoad()

void ConsoleScene::OnLoad ( )
inlineoverridevirtual

Called when scene is loaded.

Reimplemented from Scene::Scene.


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