From f848ad0e672d913c36fcb86533cbc11a9cf9d9ea Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 3 Nov 2022 18:25:28 +0000 Subject: Rename Shader to SceneShader --- gfx/gl/sceneShader.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gfx/gl/sceneShader.h (limited to 'gfx/gl/sceneShader.h') diff --git a/gfx/gl/sceneShader.h b/gfx/gl/sceneShader.h new file mode 100644 index 0000000..61c159b --- /dev/null +++ b/gfx/gl/sceneShader.h @@ -0,0 +1,27 @@ +#pragma once + +#include "programHandle.h" +#include +#include +#include + +class Location; + +class SceneShader { +public: + enum class Program { Basic = 0, Water = 1, LandMass = 2, StaticPos = 3 }; + + SceneShader(); + + void setView(glm::mat4 view) const; + void setModel(const Location &, Program = Program::Basic) const; + void setUniform(const GLchar *, glm::vec3 dir) const; + +private: + class ProgramHandle : public ProgramHandleBase { + public: + ProgramHandle(GLuint, GLuint); + }; + + std::array programs; +}; -- cgit v1.2.3