Configuration.h
branchv_0
changeset 6 fd93a46db15b
parent 5 ee4ba9f5a053
child 29 dc3c102e1264
--- 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;