VisualizeVideo
Main Page
Classes
Files
File List
All
Classes
Functions
Pages
Shader.h
1
#pragma once
2
3
#include <GL/glew.h>
4
#include <GL/glfw.h>
5
6
#include <string>
7
8
#include "RenderingException.h"
9
10
using
std::string;
11
12
#pragma warning( disable : 4290 )
13
15
19
class
Shader
20
{
21
public
:
22
Shader
(GLenum shaderType,
const
string
&filename)
throw
(
RenderingException
);
23
~
Shader
(
void
);
24
25
GLenum getShaderType()
const
;
26
std::string getFilename()
const
;
27
28
GLuint getShader()
const
;
29
private
:
30
GLenum _shaderType;
31
std::string _filename;
32
33
GLuint _shader;
34
35
void
loadShader();
36
std::string loadFileContents();
37
};
38
Generated on Mon Jun 10 2013 19:29:25 for VisualizeVideo by
1.8.4