gKit2 light

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

uniforms.h
Go to the documentation of this file.
1
2 #ifndef _UNIFORMS_H
3 #define _UNIFORMS_H
4
5 #include <string>
6
7 #include "glcore.h"
8
9 #include "vec.h"
10 #include "mat.h"
11 #include "color.h"
12
13
16
19
21 void program_uniform( const GLuint program, const char *uniform, const unsigned int v );
23 void program_uniform( const GLuint program, const char *uniform, const int v );
25 void program_uniform( const GLuint program, const char *uniform, const float v );
26
28 void program_uniform( const GLuint program, const char *uniform, const vec2& v );
29
31 void program_uniform( const GLuint program, const char *uniform, const vec3& v );
33 void program_uniform( const GLuint program, const char *uniform, const Point& v );
35 void program_uniform( const GLuint program, const char *uniform, const Vector& v );
36
38 void program_uniform( const GLuint program, const char *uniform, const vec4& v );
40 void program_uniform( const GLuint program, const char *uniform, const Color& c );
41
43 void program_uniform( const GLuint program, const char *uniform, const Transform& v );
44
46 void program_use_texture( const GLuint program, const char *uniform, const int unit, const GLuint texture, const GLuint sampler= 0 );
47
49 #endif
vec3
vecteur generique, utilitaire.
Definition: vec.h:104
vec2
vecteur generique, utilitaire.
Definition: vec.h:94
Color
representation d'une couleur (rgba) transparente ou opaque.
Definition: color.h:13
vec4
vecteur generique 4d, ou 3d homogene, utilitaire.
Definition: vec.h:121
program_uniform
void program_uniform(const GLuint program, const char *uniform, const unsigned int v)
affecte une valeur a un uniform du shader program. uint.
Definition: uniforms.cpp:68
program_use_texture
void program_use_texture(const GLuint program, const char *uniform, const int unit, const GLuint texture, const GLuint sampler=0)
configure le pipeline et le shader program pour utiliser une texture, et des parametres de filtrages...
Definition: uniforms.cpp:118
Vector
representation d'un vecteur 3d.
Definition: vec.h:42
mat.h
color.h
Transform
representation d'une transformation, une matrice 4x4, organisee par ligne / row major.
Definition: mat.h:20
Point
representation d'un point 3d.
Definition: vec.h:19
vec.h