Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Shader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include <glm.hpp>
5 #include "glew.h"
6 #include "FileLoader.h"
7 
13 class Shader
14 {
15 private:
20 
27 
33  void initaliseShader(std::string shaderFileName, char shaderType);
34 
35 public:
42  Shader(std::string vertexShaderFileName, std::string fragmentShaderFileName);
43 
48  ~Shader();
49 
55 
61 
67 
73 
79 };
unsigned int GLuint
Definition: glew.h:276
GLuint getShaderProgram()
Definition: Shader.cpp:139
GLint shaderViewMatrixLocation
Definition: Shader.h:19
GLint getShaderProjectionMatrixLocation()
Definition: Shader.cpp:166
GLint textureSamplerLocation
Definition: Shader.h:19
~Shader()
Definition: Shader.cpp:54
GLuint shader
Definition: glew.h:1812
GLint shaderModelMatrixLocation
Definition: Shader.h:19
GLint getViewMatrixLocation()
Definition: Shader.cpp:157
void initaliseShader(std::string shaderFileName, char shaderType)
Definition: Shader.cpp:61
bool CheckShaderCompiled(GLint shader)
Definition: Shader.cpp:110
GLint getModelMatrixLocation()
Definition: Shader.cpp:148
Creates a Shader for use with OpenGL. Creates a Shader from an text file, this can then be used with ...
Definition: Shader.h:13
GLuint shaderProgram
Definition: Shader.h:17
int GLint
Definition: glew.h:277
GLint getTextureSamplerLocation()
Definition: Shader.cpp:175
GLint shaderProjectionMatrixLocation
Definition: Shader.h:19
Shader(std::string vertexShaderFileName, std::string fragmentShaderFileName)
Definition: Shader.cpp:6
GLsizei const GLchar *const * string
Definition: glew.h:1843