feat(shader): add few functions

This commit is contained in:
2025-11-20 06:52:30 +01:00
parent 6ccbc1c4e9
commit 1c78ff27e7
2 changed files with 10 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class Shaders
class Shader
{
private:
GLuint vertexShader;
@@ -18,8 +18,8 @@ private:
void compileInProgram();
public:
Shaders(const char* vertexShaderSource, const char* fragmentShaderSource);
~Shaders();
Shader(const char* vertexShaderSource, const char* fragmentShaderSource);
~Shader();
GLuint getProgram() const;
void use() const;