Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Macros
src
visualisation
Shader.h
Go to the documentation of this file.
1
#ifndef __SHADER_H__
2
#define __SHADER_H__
3
4
#include <string>
5
#include <glew.h>
6
7
namespace
vis2
8
{
10
class
Shader
11
{
12
public
:
14
19
Shader
(
const
std::string& _vertexShader,
20
const
std::string& _fragmentShader);
21
23
25
~Shader
();
26
28
void
useShader
();
30
void
releaseShader
();
32
inline
bool
shaderInUse
()
const
{
return
shader_in_use
; }
33
34
GLuint
program_handle
;
35
36
private
:
37
38
// Shader( const Shader& ); /// \internal to hide - prevents shallow copies (bit-copy)! \endinternal
39
41
47
void
loadShader
(
const
std::string& _path_to_shader,
48
GLenum _shaderType,
49
GLuint& _shaderHandle);
50
52
54
void
link
();
55
56
GLuint
vertex_shader_handle
;
57
GLuint
fragment_shader_handle
;
58
59
bool
shader_in_use
;
60
61
};
62
}
63
64
65
66
#endif
Generated on Tue Jun 11 2013 08:43:14 for Vis 2 Demo by
1.8.3.1