Files
CPPGameBook/Capter2/game.hpp
2025-11-02 16:26:43 +01:00

36 lines
654 B
C++

#pragma once
//#include "SDL2/SDL.h"
#include "SDL3/SDL.h"
#include "SDL3/SDL_main.h"
#include <vector>
class game
{
private:
void input(); //Process input
void update(); //update game
void output(); // generate output
SDL_Window *ptr_MainWindow;
SDL_Renderer *ptr_MainRenderer;
Uint32 GameTick;
bool GameIsRunning;
bool UpdateActors;
std::vector<class Actor *> ActorList;
public:
game(); //constructor
~game(); //destructor
bool Init(int x, int y, int w, int h);
void RunLoop();
void Shutdown();
void AddActor(class Actor *ptr_actor);
void RemActor(class Actor *ptr_actor);
};