From 7f74a78a82e61a5d01371b125db0b8f7d2f94e22 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Tue, 11 Oct 2022 22:34:56 +0200 Subject: [PATCH] Cleanup --- src/shaders.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/shaders.hpp diff --git a/src/shaders.hpp b/src/shaders.hpp deleted file mode 100644 index 344098f..0000000 --- a/src/shaders.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef SHADERS_H -#define SHADERS_H -#include -#include -#include - -namespace Shaders { - std::string loadSourceFromFile(const char* file); - - unsigned int compile(GLenum shadertype, const char* shaderSource); - unsigned int compileFromFile(GLenum shadertype, const char* file); - unsigned int createProgram(std::vector shaders); - - class Shader { - public: - unsigned int id; - Shader(const char* vertPath, const char* fragPath); - - void use(); - void setBool(const std::string &name, bool val) const; - void setInt(const std::string &name, int val) const; - void setFloat(const std::string &name, float val) const; - }; -} -#endif