Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 1130:5f56fc931112
prev1066:ddffe9d2b332
next1134:f502f3d32f90
author nkeynes
date Fri Sep 17 20:08:50 2010 +1000 (12 years ago)
permissions -rw-r--r--
last change Refactor shader management to support multiple programs, which are all
defined in the shaders.glsl, rather than split up into one file per
fragment.
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.h Sun Jul 05 13:53:48 2009 +1000
1.2 +++ b/src/pvr2/glutil.h Fri Sep 17 20:08:50 2010 +1000
1.3 @@ -21,6 +21,7 @@
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 @@ -49,12 +50,10 @@
1.12
1.13 /****** Shader handling (gl_sl.c) *****/
1.14 gboolean glsl_is_supported(void);
1.15 -gboolean glsl_load_shaders( const char *vert_shader, const char *frag_shader );
1.16 +gboolean glsl_load_shaders( );
1.17 void glsl_unload_shaders(void);
1.18 -void glsl_enable_shaders( gboolean enable );
1.19 -
1.20 -extern const char *glsl_vertex_shader_src;
1.21 -extern const char *glsl_fragment_shader_src;
1.22 +gboolean glsl_set_shader( unsigned program_id );
1.23 +void glsl_clear_shader();
1.24
1.25 #ifdef __cplusplus
1.26 }
.