GLSL 'include' support

This commit is contained in:
MihailRis
2023-11-28 16:13:49 +03:00
parent e6ecd558a9
commit a60cc70246
20 changed files with 238 additions and 35 deletions
+5 -2
View File
@@ -4,8 +4,11 @@
#include <string>
#include <glm/glm.hpp>
class GLSLExtension;
class Shader {
public:
static GLSLExtension* preprocessor;
unsigned int id;
Shader(unsigned int id);
@@ -19,8 +22,8 @@ public:
void uniform2f(std::string name, glm::vec2 xy);
void uniform3f(std::string name, float x, float y, float z);
void uniform3f(std::string name, glm::vec3 xyz);
static Shader* loadShader(std::string vertexFile, std::string fragmentFile);
};
extern Shader* load_shader(std::string vertexFile, std::string fragmentFile);
#endif /* GRAPHICS_SHADER_H_ */