Refactor Widget loading.

This commit is contained in:
2021-07-08 21:34:18 +02:00
parent be4e63046a
commit 5385b7ede7
15 changed files with 176 additions and 131 deletions

View File

@@ -19,24 +19,26 @@ class Handler;
class Controller
{
public:
Controller();
~Controller();
static Controller &instance();
void run();
void setMaxFps(uint16_t fps);
static ShaderProgram *getShaderProgramByName(std::vector<ShaderProgram *> shaderPrograms, const std::string &name);
ShaderProgram *getShaderProgramByName(const std::string &name);
static ShaderProgram *getShaderProgramByName(const std::string &name, std::vector<ShaderProgram *> shaderPrograms);
void updateExposure(ShaderProgram *shaderProgram);
private:
Controller();
void limit_framerate();
void updateWindowDimensions();
ShaderProgram *getShaderProgramByName(const std::string &name);
void renderImGui(World *world, glm::vec3 *lightColor, bool *rotateEntity, bool *rotateLightSource,
ShaderProgram *postProcessingProgram, float *intensity, bool *drawShadows);