Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 1258:f8a9c0fd2abb
prev1256:a9d29fe74bf3
next1259:8a69f4d0b31d
author nkeynes
date Mon Mar 05 11:41:03 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Small cleanups:
Refactor the post-windowing setup into gl_init_driver() in video_gl.c
Move gl_sl.c into src/drivers and tidy up a bit.
Fix OS X compiling plugins with -mdynamic-no-pic
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.h Sun Mar 04 21:10:12 2012 +1000
1.2 +++ b/src/pvr2/glutil.h Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -56,6 +56,7 @@
1.4 gboolean isGLPixelBufferSupported();
1.5 gboolean isGLMultitextureSupported();
1.6 gboolean isGLMirroredTextureSupported();
1.7 +gboolean isGLShaderSupported();
1.8 GLint glGetMaxColourAttachments();
1.9
1.10 /****** Extension variant wrangling *****/
1.11 @@ -120,6 +121,11 @@
1.12 #define GL_BGRA GL_BGRA_EXT
1.13 #endif
1.14
1.15 +#if defined(GL_SHADING_LANGUAGE_VERSION_ARB) && !defined(GL_SHADING_LANGUAGE_VERSION)
1.16 +#define GL_SHADING_LANGUAGE_VERSION GL_SHADING_LANGUAGE_VERSION_ARB
1.17 +#endif
1.18 +
1.19 +
1.20 #if defined(HAVE_OPENGL_FBO_EXT) && !defined(HAVE_OPENGL_FBO)
1.21 #define glGenFramebuffers glGenFramebuffersEXT
1.22 #define glGenRenderbuffers glGenRenderbuffersEXT
1.23 @@ -136,11 +142,6 @@
1.24
1.25
1.26 /****** Shader handling (gl_sl.c) *****/
1.27 -gboolean glsl_init( display_driver_t driver );
1.28 -gboolean glsl_is_supported(void);
1.29 -const char *glsl_get_version(void);
1.30 -gboolean glsl_load_shaders( );
1.31 -void glsl_unload_shaders(void);
1.32 void glsl_clear_shader();
1.33
1.34 /* Define an orthographic transform matrix, given the bounding box (assuming origin at 0) */
.