PanoramaViewer
 All Classes Namespaces Files Functions Variables Macros Pages
Shader.h
Go to the documentation of this file.
1 /*
2  * Shader.h
3  *
4  * Created on: 26 juin 2013
5  * Author: hallison
6  */
7 
8 #ifndef SHADER_H_
9 #define SHADER_H_
10 
11 namespace LayerSceneGraph {
12 
13 class Shader {
14 private:
15  GLuint vertexShader;
17  GLint linked;
18  GLuint program;
19  GLuint textureId;
21 
22 public:
23  Shader(const char *vertexshaderCode, const char *fragmentShaderCode);
24  virtual ~Shader();
25 
26  void inline setUpShader(const char *vertexshaderCode, const char *fragmentShaderCode);
27  void bindAttributes();
28  void enableTexture();
29 
30  GLuint loadShader(GLenum type, const char *shaderSrc);
31 
32  GLint getLinkStatus();
33  GLuint getProgram();
34 };
35 
36 } /* namespace LayerSceneGraph */
37 #endif /* SHADER_H_ */