Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 1207:f7ca985659c6
prev1206:a9b41bcb8410
next1210:79bbd30363f4
author nkeynes
date Tue Feb 07 11:20:00 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Gen helper functions for uniform + attribute variables, along with the main
program use, to provide a more usable interface to the shaders
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.h Mon Jan 30 23:11:03 2012 +1000
1.2 +++ b/src/pvr2/glutil.h Tue Feb 07 11:20:00 2012 +1000
1.3 @@ -21,7 +21,6 @@
1.4
1.5 #include <stdio.h>
1.6 #include "display.h"
1.7 -#include "pvr2/shaders.h"
1.8
1.9 #ifdef __cplusplus
1.10 extern "C" {
1.11 @@ -56,17 +55,17 @@
1.12 gboolean isGLMultitextureSupported();
1.13 gboolean isGLMirroredTextureSupported();
1.14
1.15 +/****** Extension variant wrangling *****/
1.16 +
1.17 +
1.18 +
1.19 +
1.20 /****** Shader handling (gl_sl.c) *****/
1.21 gboolean glsl_is_supported(void);
1.22 const char *glsl_get_version(void);
1.23 gboolean glsl_load_shaders( );
1.24 void glsl_unload_shaders(void);
1.25 -gboolean glsl_set_shader( unsigned program_id );
1.26 void glsl_clear_shader();
1.27 -GLint glsl_get_uniform_location( unsigned program, const char *name );
1.28 -void glsl_set_uniform_int( unsigned program, const char *name, GLint value );
1.29 -void glsl_set_uniform_mat4( unsigned program, const char *name, GLfloat *value );
1.30 -GLint glsl_get_attrib_location(unsigned program, const char *name);
1.31
1.32 /* Convenience formatting function for driver use */
1.33 void fprint_extensions( FILE *out, const char *extensions );
.