--- 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);