#include #include #include #include #include #include #include #include #include "auxiliary/auxFunctions.h" #ifndef GLOBAL_H_INCLUDED #define GLOBAL_H_INCLUDED #define FPS (int) 50 /// SDL_Surface* screen; TTF_Font* fontSmaller; TTF_Font* fontSmall; TTF_Font* fontSmallBold; TTF_Font* fontLarge; SDL_Surface* text; unsigned char* keys; /// /// typedef struct vector2D { //1 egység == 1m float x, y; } vector2D; typedef struct intVector2D { int x, y; } intVector2D; typedef struct vector3D { //1 egység == 1m float x, y, z; } vector3D; /// /// typedef struct color { unsigned char r, g, b, a; } color; typedef struct colors { color light, normal, dark; } colors; /// typedef enum block { air, solid, invisible, treasure } block; typedef struct renderObject { vector3D position; vector3D size; colors colors; bool doesExist; } renderObject; #endif // GLOBAL_H_INCLUDED