Search
lxdream.org :: lxdream/src/drivers/video_gl.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_gl.h
changeset 1258:f8a9c0fd2abb
prev1251:b8ab59d39756
next1298:d0eb2307b847
author nkeynes
date Mon Mar 05 11:41:03 2012 +1000 (11 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/drivers/video_gl.h Sat Mar 03 16:11:28 2012 +1000
1.2 +++ b/src/drivers/video_gl.h Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -85,6 +85,17 @@
1.4 /* Set the fallback vertex buffer handling, for drivers with no GL */
1.5 void gl_vbo_fallback_init( display_driver_t driver );
1.6
1.7 +/** Initialize and load SL shaders */
1.8 +gboolean glsl_init( display_driver_t driver );
1.9 +
1.10 +/** Initialise common GL functionality (FBO, SL, VBO)
1.11 + * @param driver driver to be updated with appropriate calls
1.12 + * @param need_fbo if TRUE, FBOs are required (ie main driver has no other way
1.13 + * to construct an off-screen buffer)
1.14 + * @return TRUE on success, FALSE if we couldn't setup a working context
1.15 + */
1.16 +gboolean gl_init_driver( display_driver_t driver, gboolean need_fbo );
1.17 +
1.18 #ifdef __cplusplus
1.19 }
1.20 #endif
.