42 lines
643 B
C
42 lines
643 B
C
|
//
|
||
|
// Created by bruno on 27.10.2023.
|
||
|
//
|
||
|
|
||
|
#ifndef TUNELLERBUTWORSE_GAME_H
|
||
|
#define TUNELLERBUTWORSE_GAME_H
|
||
|
|
||
|
|
||
|
#include <SDL.h>
|
||
|
|
||
|
|
||
|
|
||
|
class Game {
|
||
|
public:
|
||
|
static SDL_Window* window;
|
||
|
static SDL_Renderer* renderer;
|
||
|
|
||
|
// Logical resolution
|
||
|
static unsigned int logicalWidth;
|
||
|
static unsigned int logicalHeight;
|
||
|
|
||
|
// Rendering resolution (initial window size)
|
||
|
static unsigned int renderWidth;
|
||
|
static unsigned int renderHeight;
|
||
|
|
||
|
static bool isRunning;
|
||
|
|
||
|
static SDL_Event event;
|
||
|
|
||
|
int run();
|
||
|
|
||
|
private:
|
||
|
int init();
|
||
|
int processInput();
|
||
|
int render();
|
||
|
int update();
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //TUNELLERBUTWORSE_GAME_H
|