aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
blob: 2a6d66b696cefcaf96c467d3691043f07f41fe66 (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
32
33
#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;

//WINDOW VARIABLES
extern bool gameRunning;

extern int grand(void);

#endif // COMMON_H