From 0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jan 2021 19:36:30 +0000 Subject: Big reshuffle Fixes code quality warnings now picked up. --- shader.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 shader.h (limited to 'shader.h') diff --git a/shader.h b/shader.h deleted file mode 100644 index 85a7d58..0000000 --- a/shader.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef SHADER_INCLUDED_H -#define SHADER_INCLUDED_H - -#include -#include -#include - -class Camera; -class Transform; - -class Shader { -public: - explicit Shader(const std::string & fileName); - virtual ~Shader(); - void operator=(const Shader &) = delete; - Shader(const Shader &) = delete; - - void Bind() const; - void Update(const Transform & transform, const Camera & camera) const; - -private: - static constexpr unsigned int NUM_SHADERS = 2; - static constexpr unsigned int NUM_UNIFORMS = 3; - - static void CheckShaderError(GLuint shader, GLuint flag, bool isProgram, const std::string & errorMessage); - static GLuint CreateShader(const GLchar * text, GLint len, unsigned int type); - - GLuint m_program; - std::array m_shaders; - std::array m_uniforms; -}; - -#endif -- cgit v1.2.3