High-level application wrapper that creates the main window, OpenGL context, and orchestrates update/render loops.
More...
#include <spk_graphical_application.hpp>
|
|
class | Module::SystemModule |
High-level application wrapper that creates the main window, OpenGL context, and orchestrates update/render loops.
- See also
- Module::SystemModule, Module::UpdateModule, Module::PaintModule
return app.run();
High-level application wrapper that creates the main window, OpenGL context, and orchestrates update/...
Definition spk_graphical_application.hpp:40
spk::Widget & centralWidget()
Accesses the central widget.
Definition spk_graphical_application.cpp:223
◆ GraphicalApplication() [1/2]
| spk::GraphicalApplication::GraphicalApplication |
( |
const std::wstring & | p_title, |
|
|
const spk::Extend2D & | p_extend2D, |
|
|
const Configuration & | p_configuration ) |
Builds an application with explicit configuration.
- Parameters
-
| p_title | Window title. |
| p_extend2D | Initial window size. |
| p_configuration | Configuration flags. |
◆ GraphicalApplication() [2/2]
| spk::GraphicalApplication::GraphicalApplication |
( |
const std::wstring & | p_title, |
|
|
const spk::Extend2D & | p_extend2D ) |
Builds an application with default configuration.
- Parameters
-
| p_title | Window title. |
| p_extend2D | Initial window size. |
◆ centralWidget() [1/2]
| spk::Widget & spk::GraphicalApplication::centralWidget |
( |
| ) |
|
Accesses the central widget.
- Returns
- Mutable reference to the root widget.
◆ centralWidget() [2/2]
| const spk::Widget & spk::GraphicalApplication::centralWidget |
( |
| ) |
const |
Accesses the central widget.
- Returns
- Const reference to the root widget.
◆ quit()
| void spk::GraphicalApplication::quit |
( |
int | p_errorID = 0 | ) |
|
Requests application shutdown.
- Parameters
-
| p_errorID | Exit code (default 0). |
◆ run()
| int spk::GraphicalApplication::run |
( |
| ) |
|
Starts the event, update, and render loops.
- Returns
- Exit code provided to quit.
The documentation for this class was generated from the following files: