-
Notifications
You must be signed in to change notification settings - Fork 1
/
globals.hpp
57 lines (47 loc) · 1.13 KB
/
globals.hpp
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef GLOBALS_HPP
#define GLOBALS_HPP
#include <iostream>
#include <vector>
#include <stdint.h>
#include "Graphics/RenderManager.hpp"
#include "ResourceManager.hpp"
#include "GUI/Console.hpp"
#include "Audio/SoundManager.hpp"
#define PI 3.14159265359
#define MAX_LIGHTS 12
extern Console *global_con;
extern InputManager *im;
extern ResourceManager resman;
extern RenderManager rendman;
extern GuiManager *gui;
extern SoundManager *soundman;
extern sf::RenderWindow *gwindow;
extern std::vector<std::string> packetList;
extern const char *serverDelete;
extern int width;
extern int height;
struct Packet {
int addr;
int port;
std::string data;
};
struct Settings{
bool vsync;
bool fullscreen;
int AA;
int maxFPS;
int width;
int height;
};
extern Settings settings;
std::vector<std::string> breakString(std::string input);
int stringToInt(std::string input);
float stringToFloat(std::string input);
std::string intToString(int input);
std::string floatToString(float input);
float toDegrees(float rad);
float toRad(float degrees);
glm::vec3 quatToEuler(glm::quat quat);
extern GLDebugDrawer debugDraw;
extern GLuint debugvbo;
#endif