Rhythm
Game Engines Final Project
Loading...
Searching...
No Matches
systems::menu::MenuSystem Class Reference

Manages and displays the menu within a scene. More...

Inheritance diagram for systems::menu::MenuSystem:

Public Member Functions

 this (Scene *owner)
 Constructs a MenuSystem with the given scene owner.
 
override void Update ()
 Updates the menu system, invoking menu change callbacks.
 
override void Render (SDL_Renderer *renderer)
 Renders the menu using the provided SDL renderer.
 
 typeof (this) OnMenuChange(void delegate(ulong) callback)
 Registers a callback function to be called when the menu changes.
 

Detailed Description

Manages and displays the menu within a scene.

Constructor & Destructor Documentation

◆ this()

systems::menu::MenuSystem::this ( Scene * owner)
inline

Constructs a MenuSystem with the given scene owner.

Parameters
ownerPointer to the scene that owns this menu system.

Member Function Documentation

◆ Render()

override void systems::menu::MenuSystem::Render ( SDL_Renderer * renderer)
inline

Renders the menu using the provided SDL renderer.

Parameters
rendererPointer to the SDL renderer.

◆ typeof()

systems::menu::MenuSystem::typeof ( this )
inline

Registers a callback function to be called when the menu changes.

Parameters
callbackDelegate function to be called on menu change.
Returns
Reference to the current MenuSystem instance.

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