souleng
Game engine providing full Python scripting support
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Application Struct Reference

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)
 

Detailed Description

Driver code for the game application.

Constructor & Destructor Documentation

◆ Application()

Application::Application ( int w,
int h,
std::string firstScene )

Constructs an application

Parameters
w,hthe width and height of the window containing the game
firstScenethe name of the first scene to load when running the game

Member Function Documentation

◆ Loop()

void Application::Loop ( float targetFPS)

Runs the active scene in a loop

Parameters
targetFPSthe desired speed of the application

◆ StartUp()

void Application::StartUp ( int w,
int h,
std::string firstScene )

Runs startup code, initializing SDL and other systems

Parameters
w,hthe width and height of the window initialized here
firstScenethe name of the scene to call StartUp on

The documentation for this struct was generated from the following files: