This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
Minesweeper/include/engine/engine.h

45 lines
597 B
C
Raw Normal View History

2024-05-08 12:50:29 -05:00
// Define once
#ifndef H_ENGINE
#define H_ENGINE
// Includes
/// External
#include "externals.h"
/// Engine
#include "vectors.h"
// Constants
#define SCR_WIDTH 512
#define SCR_HEIGHT 562
#define SCR_H_BUFFER 50
// Classes
class Engine{
private:
// Variables
SDL_Window* window;
Uint32 last;
public:
// Variables
static double deltaTime;
static SDL_Renderer* renderer;
static Vector2 mousePos;
static int clicking;
bool running;
// Constructor
Engine();
// Functions
void Update();
void Clear();
void Display();
void Delete();
};
// End definition
#endif