My favorites | Sign in
Project Home Downloads Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _WinGl_Shaders_h_
#define _WinGl_Shaders_h_

class Shader
{
private:
int program;
String error;
String compileError;
String fragSrc;
String vertSrc;
VectorMap<String, int> uniforms;

void PrintShaderInfoLog(GLuint obj, const char* fileName);
void PrintProgramInfoLog(GLuint obj, const char* fileName);
void PrintProgramValidationLog(GLuint obj, const char* fileName);
bool CheckGLError();
bool IsProgramCompiled(int program);
bool IsProgramLinked(int program);
int GetUniformId(const char* var);

public:

int CompileProgram(const char* vs, const char* fs);
int CompileProgram(const byte* vs, const byte* fs);
int GetProgram();
void Set(const char* var, float v);
void Set(const char* var, bool v);
void Set(const char* var, int v);
void Set(const char* var, float v0, float v1);
void Set(const char* var, float v0, float v1, float v2);
void Set(const char* var, float v0, float v1, float v2, float v3);
void Set(const char* var, float* v, int size, int count);
void Start();
void Stop();
String GetError();

Shader();
};

#endif

Change log

r4365 by unodgs on Jan 6, 2012   Diff
WinGL: Added painting through fbo, added
blur shader, fixed children clipping,
optimized painting a bit
Go to: 
Project members, sign in to write a code review

Older revisions

r3915 by unodgs on Sep 26, 2011   Diff
Rainbow: WinGL..
r3721 by unodgs on Jul 31, 2011   Diff
Rainbow: WinGL..
r3711 by unodgs on Jul 24, 2011   Diff
Rainbow: WinGL..
All revisions of this file

File info

Size: 1071 bytes, 41 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting