-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.h
More file actions
35 lines (31 loc) · 761 Bytes
/
program.h
File metadata and controls
35 lines (31 loc) · 761 Bytes
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
#ifndef PROGRAM_H
#define PROGRAM_H
#include <SFML/Graphics.hpp>
#include <TGUI/TGUI.hpp>
#include "camera.h"
#include "world.h"
#include "client.h"
#include "console.h"
class Program
{
public:
static Program* instance;
float fps;
int maxFPS;
bool mouseLock;
bool consoleOpened;
sf::RenderWindow* window;
tgui::Gui gui;
World* world;
Client* client;
Camera camera;
Console console;
Program();
static Program* getInstance();
void run();
void render(sf::Clock& beetwenIterTime);
GLuint loadShaders(std::string vertexFilePath, std::string fragmentFilePath);
void renderSceneObjects(Object* obj, sf::Vector2i scenePos);
void addSceneToLoad(sf::Vector2i sceneCoord);
};
#endif // PROGRAM_H