bootleg-game-engine/include/engine.h

27 lines
485 B
C
Raw Normal View History

2024-09-06 12:38:39 +00:00
#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();
};