summaryrefslogtreecommitdiff
path: root/engine-ocean/Graphics/GLWrappers/shader.h
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ocean/Graphics/GLWrappers/shader.h')
-rw-r--r--engine-ocean/Graphics/GLWrappers/shader.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/engine-ocean/Graphics/GLWrappers/shader.h b/engine-ocean/Graphics/GLWrappers/shader.h
new file mode 100644
index 0000000..da0ae5d
--- /dev/null
+++ b/engine-ocean/Graphics/GLWrappers/shader.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "../shaderloader.h"
+#include "../camera.h"
+#include "../material.h"
+#include "../modeltransform.h"
+#include "../light.h"
+
+class Shader{
+public:
+ Shader(std::vector<GLenum> shaderTypes, std::vector<const char*> filepaths);
+ ~Shader();
+
+ void bind();
+ void unbind();
+ GLuint getHandle();
+ void setMaterial(std::shared_ptr<Material> material);
+ void setCamera(std::shared_ptr<Camera> camera);
+ void setModelTransform(std::shared_ptr<ModelTransform> modelTransform);
+ void setModelTransform(glm::mat4 modelMatrix);
+ void setGlobalCoeffs(glm::vec3 coeffs);
+ void setLights(std::vector<std::shared_ptr<Light>> lights);
+ void clearLights();
+ void setTextUniforms(float screenWidth, float screenHeight, glm::vec3 color);
+
+private:
+ GLuint m_handle;
+};