|
souleng
Game engine providing full Python scripting support
|
Driver code for the game application. More...
#include <Application.hpp>
Public Member Functions | |
| Application (int w, int h, std::string firstScene) | |
| void | StartUp (int w, int h, std::string firstScene) |
| void | Shutdown () |
| Shuts down game systems like SDL and TTF when the application is closing. | |
| void | Input () |
| Refreshes the input of the application. | |
| void | Loop (float targetFPS) |
Driver code for the game application.
| Application::Application | ( | int | w, |
| int | h, | ||
| std::string | firstScene ) |
Constructs an application
| w,h | the width and height of the window containing the game |
| firstScene | the name of the first scene to load when running the game |
| void Application::Loop | ( | float | targetFPS | ) |
Runs the active scene in a loop
| targetFPS | the desired speed of the application |
| void Application::StartUp | ( | int | w, |
| int | h, | ||
| std::string | firstScene ) |
Runs startup code, initializing SDL and other systems
| w,h | the width and height of the window initialized here |
| firstScene | the name of the scene to call StartUp on |