aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
blob: 9ce1be08089f681c973b4d14b0cbdb36de6bb44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COMMON_H
#define COMMON_H

typedef struct{float x; float y;}vec2;

///THIS FILE IS USED FOR VARIABLES THAT WILL BE ACCESED BY MULTIPLE CLASSES/FILES

#include <iostream>
#include <cstdlib>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_opengl.h>
#include <UIClass.h>
#include <entities.h>
#include <World.h>

#define SCREEN_WIDTH  1280
#define SCREEN_HEIGHT 800
#define FULLSCREEN

#define HLINE (2.0f/(SCREEN_WIDTH/4))

//SDL VARIABLES
extern SDL_Window    *window;
extern SDL_Surface   *renderSurface;
extern SDL_GLContext  mainGLContext;

//WINODWS VARIABLES
extern bool gameRunning;

#endif // COMMON_H