shaders.h
Go to the documentation of this file.00001
00002
00003 #ifdef MODULE_SHADERS
00004 #define WHERE
00005 #else
00006 #define WHERE extern
00007 #endif
00008
00009 WHERE void ShadersInit(char *root, BOOL);
00010 WHERE void ShadersInitTour(char *root);
00011 WHERE void UseShaderProgram(long id);
00012 WHERE void UseSingleShaderProgram(long id);
00013 WHERE void UnloadShaders(void);
00014 WHERE void SetUniformInteger(int id, char *name, GLint val);
00015 WHERE void SetUniformVariable(int id, char *name, GLfloat val);
00016 WHERE void SetUniformVector(int id, char *name, GLfloat a, GLfloat b, GLfloat c);
00017 WHERE void SetUniformVector2(int id, char *name, GLfloat a, GLfloat b);
00018 WHERE void SetUniformMatrix3(int id, char *name, GLfloat m[3][3]);
00019 WHERE void SetUniformMatrix4(int id, char *name, GLfloat m[4][4]);
00020 WHERE void SetAttributeInteger(int id, char *name, GLshort val);
00021 WHERE void SetAttributeVariable(int id, char *name, GLfloat val);
00022 WHERE void SetAttributeVector(int id, char *name, GLfloat a, GLfloat b, GLfloat c);
00023 WHERE void SetAttributeVectorID(int id, int loc, GLfloat a, GLfloat b, GLfloat c);
00024 WHERE void BindAttributeVector(int id, char *name, int loc);
00025 WHERE GLint GetAttibuteLocation(int id, char *name);
00026 WHERE int LoadAndCompileShader(char *name);
00027 WHERE void UnloadCompiledShader(int id);