45 lines
No EOL
597 B
C++
45 lines
No EOL
597 B
C++
// 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 |