Steppable 0.0.1
A CAS project written from scratch in C++
|
The namespace for the GUI components of the Steppable library. This is the main namespace for the GUI components. More...
Namespaces | |
namespace | __internals |
The namespace for the internal components of the GUI module of the Steppable library. | |
Functions | |
void | runWindow (const std::string &name, const std::function< void(void)> &predicate) |
Runs the main window of the application. | |
The namespace for the GUI components of the Steppable library. This is the main namespace for the GUI components.
void steppable::gui::runWindow | ( | const std::string & | name, |
const std::function< void(void)> & | predicate ) |
Runs the main window of the application.
This method replaces the long ininitalization process of the application with a simple call to the runWindow method. This method initializes the SDL2 and OpenGL backends for the application, then runs the main window loop. The main window loop is responsible for rendering the application's contents and handling user input.
name | The name of the window. |
predicate | The function that will be called to render the window. |