--- a/Configuration.h Fri Dec 01 20:25:49 2023 +0100
+++ b/Configuration.h Fri Dec 01 21:02:02 2023 +0100
@@ -33,18 +33,19 @@
};
class Shader : public File {
- };
+ public:
+
+ std::string type;
- class VertexShader : public Shader {
- };
+ Shader(const std::string& fileName, const std::string& type) :
+ File(fileName), type(type) {
+ }
- class FragmentShader : public Shader {
};
// TODO: support loading whole directory and monitoring using inotify
std::vector<Texture> textures;
- std::vector<VertexShader> vertexShaders;
- std::vector<FragmentShader> fragmentShaders;
+ std::vector<Shader> shaders;
unsigned long backgroundColor = (0x33 << 16 | 0x33 << 8 | 0x33);
Window rootWindow = 0;