opengl.h
branchv_0
changeset 6 fd93a46db15b
parent 5 ee4ba9f5a053
child 29 dc3c102e1264
--- a/opengl.h	Fri Dec 01 20:25:49 2023 +0100
+++ b/opengl.h	Fri Dec 01 21:02:02 2023 +0100
@@ -49,13 +49,6 @@
 }
 
 inline
-Shader::Type toShaderType(const std::string& fileName) {
-	if (fileName.ends_with(".vert")) return Shader::Type::VERTEX;
-	else if (fileName.ends_with(".frag")) return Shader::Type::FRAGMENT;
-	else throw std::invalid_argument("Expecting *.vert or *.frag file");
-}
-
-inline
 void dump(const char* name, const glm::vec3& value) {
 	std::cerr << "dump: " << name << " = ["
 			<< value.x << ", "