Search
lxdream.org :: lxdream/src/pvr2/glutil.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.h
changeset 1245:01e0020adf88
prev1236:d93175c36387
next1256:a9d29fe74bf3
author nkeynes
date Fri Mar 02 23:49:10 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Android WIP:
* Rename gui_jni.c to gui_android.c - now quite android specific.
* Implement generic EGL driver with very minimal Java wrapper
* Run emulation in separate thread, and implement simple queue for
inter-thread communication.
* Add menu/action-bar items for start + reset
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.h Fri Feb 24 21:17:47 2012 +1000
1.2 +++ b/src/pvr2/glutil.h Fri Mar 02 23:49:10 2012 +1000
1.3 @@ -33,6 +33,8 @@
1.4 */
1.5 gboolean isGLExtensionSupported( const char *extension );
1.6
1.7 +gboolean isOpenGLES2();
1.8 +
1.9 /**
1.10 * Dump GL information to the output stream, usually for debugging purposes
1.11 */
1.12 @@ -106,6 +108,18 @@
1.13 #define GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_EXT
1.14 #endif
1.15
1.16 +#if defined(GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT) && !defined(GL_UNSIGNED_SHORT_1_5_5_5_REV)
1.17 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT
1.18 +#endif
1.19 +
1.20 +#if defined(GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT) && !defined(GL_UNSIGNED_SHORT_4_4_4_4_REV)
1.21 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT
1.22 +#endif
1.23 +
1.24 +#if defined(GL_BGRA_EXT) && !defined(GL_BGRA)
1.25 +#define GL_BGRA GL_BGRA_EXT
1.26 +#endif
1.27 +
1.28 #if defined(HAVE_OPENGL_FBO_EXT) && !defined(HAVE_OPENGL_FBO)
1.29 #define glGenFramebuffers glGenFramebuffersEXT
1.30 #define glGenRenderbuffers glGenRenderbuffersEXT
.