9 GLuint size
; /**< number of value[] elements: 1, 2, 3 or 4 */
10 GLenum type
; /**< GL_FLOAT, GL_FLOAT_VEC4, GL_INT, etc */
12 GLint location
; /**< filled in by InitUniforms() */
15 #define END_OF_UNIFORMS { NULL, 0, GL_NONE, { 0, 0, 0, 0 }, -1 }
21 GLuint size
; /**< number of value[] elements: 1, 2, 3 or 4 */
22 GLenum type
; /**< GL_FLOAT, GL_FLOAT_VEC4, GL_INT, etc */
28 ShadersSupported(void);
31 CompileShaderText(GLenum shaderType
, const char *text
);
34 CompileShaderFile(GLenum shaderType
, const char *filename
);
37 LinkShaders(GLuint vertShader
, GLuint fragShader
);
40 SetUniformValues(GLuint program
, struct uniform_info uniforms
[]);
43 GetUniforms(GLuint program
, struct uniform_info uniforms
[]);
46 PrintUniforms(const struct uniform_info uniforms
[]);
49 GetAttribs(GLuint program
, struct attrib_info attribs
[]);
52 PrintAttribs(const struct attrib_info attribs
[]);
54 #endif /* SHADER_UTIL_H */