Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::gui Namespace Reference

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.
 

Detailed Description

The namespace for the GUI components of the Steppable library. This is the main namespace for the GUI components.

Function Documentation

◆ runWindow()

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.

Parameters
nameThe name of the window.
predicateThe function that will be called to render the window.
Untitled