|
matf-rg-engine
1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
#include <MainController.hpp>


Public Member Functions | |
| std::string_view | name () const override |
Public Member Functions inherited from engine::core::Controller | |
| virtual | ~Controller ()=default |
| void | before (Controller *next) |
| void | after (Controller *prev) |
| const std::vector< Controller * > & | next () const |
| bool | is_enabled () const |
| Controller will execute as long this function returns true. More... | |
| void | set_enable (bool value) |
| Enables or disables the controller based on value. The engine::core::App executes only the enabled controllers, except for the Controller::poll_events function, that's executed always. By default, controllers are enabled when registered. More... | |
Private Member Functions | |
| void | initialize () override |
| Initializes the controller. Executes in the core::App::initialize. More... | |
| bool | loop () override |
| Checks whether the main loop should continue. Executes in the core::App::loop. More... | |
| void | poll_events () override |
| Process internal and external events. Executes in the core::App::poll_events. More... | |
| void | update () override |
| Update the controller state and prepare for drawing. Executes in the core::App::update. More... | |
| void | begin_draw () override |
| Perform preparation for drawing. Executes in the core::App::draw, before core::Controller::draw. More... | |
| void | draw () override |
| Draw the world state. Executes in the core::App::draw. More... | |
| void | end_draw () override |
| Finalize drawing. Executes in the core::App::draw, after engine::core::Controller::draw. More... | |
| void | draw_skybox () |
| void | draw_backpack () |
| void | update_camera () |
Private Attributes | |
| float | m_backpack_scale {1.0f} |
| bool | m_draw_gui {false} |
| bool | m_cursor_enabled {true} |
Additional Inherited Members | |
Static Public Member Functions inherited from engine::core::Controller | |
| template<typename TController > | |
| static TController * | get (std::source_location location=std::source_location::current()) |
| Serves as a single access point for all the Controller types throughout the code base. Make sure to register the controller via App::register_controller before calling this function. More... | |
|
inlineoverridevirtual |
Returns the controller class name; used for logging.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Initializes the controller. Executes in the core::App::initialize.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Checks whether the main loop should continue. Executes in the core::App::loop.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Process internal and external events. Executes in the core::App::poll_events.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Update the controller state and prepare for drawing. Executes in the core::App::update.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Perform preparation for drawing. Executes in the core::App::draw, before core::Controller::draw.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Draw the world state. Executes in the core::App::draw.
Reimplemented from engine::core::Controller.
|
overrideprivatevirtual |
Finalize drawing. Executes in the core::App::draw, after engine::core::Controller::draw.
Reimplemented from engine::core::Controller.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |