Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_GL / INC / Shaders.h
1 #ifndef SHADERS_H
2 #define SHADERS_H
3
4 #include "bilat_GL.h"
5 #include "ShaderCodes.h"
6
7 /**
8 * Use ShaderLoader to crate a Shader
9 * But shaderType is GL_VERTEX_SHADER or GL_FRAGMENT_SHADER
10 */
11 class CBI_GL Shaders
12 {
13 public:
14 Shaders(GLenum shaderType,ShaderCodes* sourceCode);
15 virtual ~Shaders();
16
17 void init();
18 void release();
19 GLuint getShaderID() const;
20 private :
21 GLenum shaderType;
22 ShaderCodes* shaderCode;
23 GLuint shaderID;
24 };
25
26 #endif