souleng
Game engine providing full Python scripting support
Loading...
Searching...
No Matches
Application.hpp
1#pragma once
2#include <SDL3/SDL.h>
3#include <string>
4
6struct Application {
10 Application(int w, int h, std::string firstScene);
11
13
17 void StartUp(int w, int h, std::string firstScene);
18
20 void Shutdown();
21
23 void Input();
24
27 void Loop(float targetFPS);
28
29private:
30 bool mRun{true};
31 SDL_Window *mWindow;
32 SDL_Renderer *mRenderer;
33};
Driver code for the game application.
Definition Application.hpp:6
void StartUp(int w, int h, std::string firstScene)
Definition Application.cpp:20
Application(int w, int h, std::string firstScene)
Definition Application.cpp:13
void Input()
Refreshes the input of the application.
Definition Application.cpp:43
void Shutdown()
Shuts down game systems like SDL and TTF when the application is closing.
Definition Application.cpp:37
void Loop(float targetFPS)
Definition Application.cpp:51