Files
fall-fever/src/Controller.h
2020-09-22 10:40:25 +02:00

48 lines
932 B
C++

#pragma once
#include <GLFW/glfw3.h>
#include "Window.h"
#include "EventHandler.h"
#include "Camera.h"
#include "ShaderProgram.h"
#include "Entity.h"
#include "defines.h"
#include "Light.h"
#include "Framebuffer.h"
class Controller {
public:
Controller();
~Controller();
void run();
static void error_callback(int error, const char* description);
private:
void limit_framerate();
void updateWindowSize(ShaderProgram *pp_program);
void updateExposure(ShaderProgram *shaderProgram);
void renderImGui(std::vector<Entity> *entites, PointLight *pointLight, glm::vec3 *lightColor, bool *rotateLightSource, ShaderProgram *postProcessingProgram, float *intensity);
Window *gameWindow;
EventHandler *gameEventHandler;
Camera *camera;
Framebuffer *pp_framebuffer;
const uint16_t MAX_FPS = 60;
double deltaTime;
bool wireFrameMode = 0;
float exposure = 1.0f;
};