#include <SimpleExample.h>
|
| bool | Init () override |
| | Initializes the example.
|
| |
| bool | Update () override |
| | Updates the example.
|
| |
| bool | Draw () override |
| | Renders the example.
|
| |
| void | Quit () override |
| | Cleans up resources.
|
| |
| const std::string & | GetName () override |
| |
|
| std::string | name = "SimpleExample" |
| |
◆ Draw()
| bool SimpleExample::Draw |
( |
| ) |
|
|
overrideprivatevirtual |
Renders the example.
This function is called every frame after updating. It handles all the rendering operations, including acquiring a GPU command buffer, clearing the screen, and submitting the frame to the GPU.
- Parameters
-
| context | Reference to the global Context object. |
- Returns
- true if rendering succeeds, false otherwise.
Implements Common::BaseProject.
◆ GetName()
| const std::string & SimpleExample::GetName |
( |
| ) |
|
|
inlinenodiscardoverrideprivatevirtual |
◆ Init()
| bool SimpleExample::Init |
( |
| ) |
|
|
overrideprivatevirtual |
Initializes the example.
This function runs once at the start and is used to set up the necessary resources.
- Parameters
-
| context | Reference to the global Context object. |
- Returns
- true if initialization succeeds, false otherwise.
Implements Common::BaseProject.
◆ Quit()
| void SimpleExample::Quit |
( |
| ) |
|
|
overrideprivatevirtual |
Cleans up resources.
This function is called once during shutdown. It is used to free any allocated resources, close files, and perform necessary cleanup.
- Parameters
-
| context | Reference to the global Context object. |
Implements Common::BaseProject.
◆ Update()
| bool SimpleExample::Update |
( |
| ) |
|
|
overrideprivatevirtual |
Updates the example.
This function is called every frame before rendering. It is typically used to update game logic, process input, and prepare data for rendering.
- Parameters
-
| context | Reference to the global Context object. |
- Returns
- true if the update succeeds, false otherwise.
Implements Common::BaseProject.
◆ name
| std::string SimpleExample::name = "SimpleExample" |
|
private |
The documentation for this class was generated from the following files: