bootleg-game-engine/include/engine.h
2024-09-06 13:38:39 +01:00

27 lines
485 B
C++

#include "input.h"
#include "text.h"
#include "sprite.h"
#include "vector.h"
#include <SDL.h>
#include <string>
#include <vector>
class Engine
{
private:
const char* ctitle;
int frameStart = 0;
public:
Input input;
int targetFrameRate = 60;
SDL_Window *window;
SDL_Renderer *renderer;
Engine(std::string title, int width, int height);
void clear(SDL_Color color);
void startFrame();
void render();
void update();
~Engine();
};