Creating a base toolkit for functions independent from other toolkits

This commit is contained in:
Bruno
2021-04-25 20:09:22 +02:00
parent 129d5445c3
commit 055f5c4c4e
24 changed files with 159 additions and 118 deletions

View File

@@ -14,7 +14,7 @@
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "GlmToolkit.h"
#include "BaseToolkit.h"
#include <glm/gtc/type_ptr.hpp>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/string_cast.hpp>
@@ -203,7 +203,7 @@ bool Shader::force_blending_opacity = false;
Shader::Shader() : blending(BLEND_OPACITY)
{
// create unique id
id_ = GlmToolkit::uniqueId();
id_ = BaseToolkit::uniqueId();
program_ = &simpleShadingProgram;
reset();