X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gl.h;h=cb4807105148b2068a665edaad5a28beae8efb5c;hb=HEAD;hp=83b9e41135aab1a38d09194318506c03fda49e97;hpb=0d645bc539fdc073f20c4dea9f4a4e218cebec0e;p=libpicofe.git diff --git a/gl.h b/gl.h index 83b9e41..bddacdc 100644 --- a/gl.h +++ b/gl.h @@ -1,15 +1,26 @@ +#ifndef LIBPICOFE_GL_H +#define LIBPICOFE_GL_H + #ifdef HAVE_GLES -int gl_init(void *display, void *window, int *quirks); -int gl_flip(const void *fb, int w, int h); +int gl_init(void *display, void *window, int *quirks, int w, int h); +void gl_announce(void); +int gl_flip(const void *fb, int w, int h); void gl_finish(void); +/* for external flips */ +extern void *gl_es_display; +extern void *gl_es_surface; + #else -static __inline int gl_init(void *display, void *window, int *quirks) +static __inline int gl_init(void *display, void *window, int *quirks, int w, int h) { return -1; } +static __inline void gl_announce(void) +{ +} static __inline int gl_flip(const void *fb, int w, int h) { return -1; @@ -18,6 +29,11 @@ static __inline void gl_finish(void) { } +#define gl_es_display (void *)0 +#define gl_es_surface (void *)0 + #endif #define GL_QUIRK_ACTIVATE_RECREATE 1 + +#endif // LIBPICOFE_GL_H