#ifndef ENGINE_H
#define ENGINE_H

/* variables */
extern pthread_t thread;
extern int e_resolution[2];
extern bool run;

//time
extern int e_fpstarget;
extern int e_tickrate;

//sdl
extern SDL_Window * window;
extern SDL_Renderer * renderer;
extern SDL_Event event;

typedef struct {
	int position[3];
	int direction[2];
} e_placement;

typedef struct {
	bool moving;
	struct {
		int global[3];
		int realitive[3];
	} speed;
	e_placement placement;
} e_entity;

/* functions */

int e_init(void);
void e_cleanup(void);
#endif
