Shark.h
branchv_0
changeset 3 48dc4ae894b0
parent 2 3faef2f5128e
child 5 ee4ba9f5a053
--- a/Shark.h	Wed Nov 29 01:11:19 2023 +0100
+++ b/Shark.h	Wed Nov 29 01:21:17 2023 +0100
@@ -170,19 +170,20 @@
 	
 	ImageLoader imageLoader;
 	
+	GLuint shaderProgram;
 	std::vector<Texture> textures;
 
 	Configuration cfg;
 	std::ostream& logOutput = std::cerr;
 
-	void renderImmediateMode();
-	void runShaders(GLuint program);
+	void clear();
+	void runShaders();
 	Window getRootWindow(Window defaultValue);
 	void log(LogLevel level, std::string message);
 	int setNonBlocking(int fd);
 	void loadVertices();
 	Texture loadTexture(const std::string& fileName);
-	void loadTextures(GLuint shaderProgram);
+	void loadTextures();
 	GLuint loadShaders();
 public:
 	Shark(const Configuration& cfg);