shaders.h File Reference

Go to the source code of this file.

Defines

#define WHERE   extern

Functions

WHERE void ShadersInit (char *root, BOOL)
WHERE void ShadersInitTour (char *root)
WHERE void UseShaderProgram (long id)
WHERE void UseSingleShaderProgram (long id)
WHERE void UnloadShaders (void)
WHERE void SetUniformInteger (int id, char *name, GLint val)
WHERE void SetUniformVariable (int id, char *name, GLfloat val)
WHERE void SetUniformVector (int id, char *name, GLfloat a, GLfloat b, GLfloat c)
WHERE void SetUniformVector2 (int id, char *name, GLfloat a, GLfloat b)
WHERE void SetUniformMatrix3 (int id, char *name, GLfloat m[3][3])
WHERE void SetUniformMatrix4 (int id, char *name, GLfloat m[4][4])
WHERE void SetAttributeInteger (int id, char *name, GLshort val)
WHERE void SetAttributeVariable (int id, char *name, GLfloat val)
WHERE void SetAttributeVector (int id, char *name, GLfloat a, GLfloat b, GLfloat c)
WHERE void SetAttributeVectorID (int id, int loc, GLfloat a, GLfloat b, GLfloat c)
WHERE void BindAttributeVector (int id, char *name, int loc)
WHERE GLint GetAttibuteLocation (int id, char *name)
WHERE int LoadAndCompileShader (char *name)
WHERE void UnloadCompiledShader (int id)


Define Documentation

#define WHERE   extern

Definition at line 6 of file shaders.h.


Function Documentation

WHERE void ShadersInit ( char *  root,
BOOL   
)

Definition at line 40 of file shaders.c.

References FALSE, N_PROGRAMS_MAX, nPrograms, and TRUE.

WHERE void ShadersInitTour ( char *  root  ) 

Definition at line 35 of file shaders.c.

References FALSE, ShadersInit(), and TRUE.

WHERE void UseShaderProgram ( long  id  ) 

Definition at line 143 of file shaders.c.

WHERE void UseSingleShaderProgram ( long  id  ) 

Definition at line 137 of file shaders.c.

WHERE void UnloadShaders ( void   ) 

Definition at line 149 of file shaders.c.

References FALSE, and nPrograms.

Referenced by CloseGlWindow().

WHERE void SetUniformInteger ( int  id,
char *  name,
GLint  val 
)

Definition at line 160 of file shaders.c.

WHERE void SetUniformVariable ( int  id,
char *  name,
GLfloat  val 
)

Definition at line 169 of file shaders.c.

WHERE void SetUniformVector ( int  id,
char *  name,
GLfloat  a,
GLfloat  b,
GLfloat  c 
)

Definition at line 177 of file shaders.c.

WHERE void SetUniformVector2 ( int  id,
char *  name,
GLfloat  a,
GLfloat  b 
)

Definition at line 185 of file shaders.c.

WHERE void SetUniformMatrix3 ( int  id,
char *  name,
GLfloat  m[3][3] 
)

Definition at line 193 of file shaders.c.

References TRUE.

WHERE void SetUniformMatrix4 ( int  id,
char *  name,
GLfloat  m[4][4] 
)

Definition at line 203 of file shaders.c.

References TRUE.

WHERE void SetAttributeInteger ( int  id,
char *  name,
GLshort  val 
)

Definition at line 211 of file shaders.c.

WHERE void SetAttributeVariable ( int  id,
char *  name,
GLfloat  val 
)

Definition at line 219 of file shaders.c.

WHERE void SetAttributeVector ( int  id,
char *  name,
GLfloat  a,
GLfloat  b,
GLfloat  c 
)

Definition at line 227 of file shaders.c.

WHERE void SetAttributeVectorID ( int  id,
int  loc,
GLfloat  a,
GLfloat  b,
GLfloat  c 
)

Definition at line 240 of file shaders.c.

WHERE void BindAttributeVector ( int  id,
char *  name,
int  loc 
)

Definition at line 235 of file shaders.c.

WHERE GLint GetAttibuteLocation ( int  id,
char *  name 
)

Definition at line 245 of file shaders.c.

WHERE int LoadAndCompileShader ( char *  name  ) 

Definition at line 94 of file shaders.c.

References FALSE, and TRUE.

WHERE void UnloadCompiledShader ( int  id  ) 

Definition at line 129 of file shaders.c.

References FALSE.


Generated on Sun Apr 27 14:20:17 2014 for OpenFX by  doxygen 1.5.6