mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 03:34:15 +00:00
feat(shader): add few functions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user