Reorganize and add License

This commit is contained in:
4VRDriver
2020-09-05 11:32:30 +02:00
parent 59e043a946
commit dead2521c8
24 changed files with 32 additions and 11 deletions

37
src/Controller.h Normal file
View File

@@ -0,0 +1,37 @@
#pragma once
#include <GLFW/glfw3.h>
#include "Window.h"
#include "EventHandler.h"
#include "Camera.h"
#include "ShaderProgram.h"
#include "VertexBuffer.h"
#include "defines.h"
class Controller {
public:
Controller();
~Controller();
void run();
static void error_callback(int error, const char* description);
private:
void limit_framerate();
void updateWindowSize();
Window *gameWindow;
EventHandler *gameEventHandler;
Camera *camera;
const uint16_t MAX_FPS = 60;
double deltaTime;
bool wireFrameMode = 0;
};