Go to the source code of this file.
Defines | |
#define | __gl2_main_ |
#define | N_PROGRAMS_MAX 30 |
#define | nPrograms 8 |
Functions | |
void | ShadersInitTour (char *root) |
void | ShadersInit (char *root, BOOL preview) |
int | LoadAndCompileShader (char *name) |
void | UnloadCompiledShader (int id) |
void | UseSingleShaderProgram (long id) |
void | UseShaderProgram (long id) |
void | UnloadShaders (void) |
void | SetUniformInteger (int id, char *name, GLint val) |
void | SetUniformVariable (int id, char *name, GLfloat val) |
void | SetUniformVector (int id, char *name, GLfloat a, GLfloat b, GLfloat c) |
void | SetUniformVector2 (int id, char *name, GLfloat a, GLfloat b) |
void | SetUniformMatrix3 (int id, char *name, GLfloat m[3][3]) |
void | SetUniformMatrix4 (int id, char *name, GLfloat m[4][4]) |
void | SetAttributeInteger (int id, char *name, GLshort val) |
void | SetAttributeVariable (int id, char *name, GLfloat val) |
void | SetAttributeVector (int id, char *name, GLfloat a, GLfloat b, GLfloat c) |
void | BindAttributeVector (int id, char *name, int loc) |
void | SetAttributeVectorID (int id, int loc, GLfloat a, GLfloat b, GLfloat c) |
GLint | GetAttibuteLocation (int id, char *name) |
#define N_PROGRAMS_MAX 30 |
#define nPrograms 8 |
void ShadersInitTour | ( | char * | root | ) |
void ShadersInit | ( | char * | root, | |
BOOL | preview | |||
) |
int LoadAndCompileShader | ( | char * | name | ) |
void UseShaderProgram | ( | long | id | ) |
Definition at line 143 of file shaders.c.
Referenced by DrawExternalMaterialPolys(), and Make3dDisplayListProg().
void UnloadShaders | ( | void | ) |
Definition at line 149 of file shaders.c.
References FALSE, and nPrograms.
Referenced by CloseGlWindow().
void SetUniformVariable | ( | int | id, | |
char * | name, | |||
GLfloat | val | |||
) |
void SetUniformVector | ( | int | id, | |
char * | name, | |||
GLfloat | a, | |||
GLfloat | b, | |||
GLfloat | c | |||
) |
void SetUniformVector2 | ( | int | id, | |
char * | name, | |||
GLfloat | a, | |||
GLfloat | b | |||
) |
void SetUniformMatrix3 | ( | int | id, | |
char * | name, | |||
GLfloat | m[3][3] | |||
) |
void SetUniformMatrix4 | ( | int | id, | |
char * | name, | |||
GLfloat | m[4][4] | |||
) |
void SetAttributeInteger | ( | int | id, | |
char * | name, | |||
GLshort | val | |||
) |
void SetAttributeVariable | ( | int | id, | |
char * | name, | |||
GLfloat | val | |||
) |
void SetAttributeVector | ( | int | id, | |
char * | name, | |||
GLfloat | a, | |||
GLfloat | b, | |||
GLfloat | c | |||
) |
void SetAttributeVectorID | ( | int | id, | |
int | loc, | |||
GLfloat | a, | |||
GLfloat | b, | |||
GLfloat | c | |||
) |