gl: make surface and context readable by users
[libpicofe.git] / gl.h
... / ...
CommitLineData
1#ifdef HAVE_GLES
2
3int gl_init(void *display, void *window, int *quirks);
4int gl_flip(const void *fb, int w, int h);
5void gl_finish(void);
6
7/* for external flips */
8extern void *gl_es_display;
9extern void *gl_es_surface;
10
11#else
12
13static __inline int gl_init(void *display, void *window, int *quirks)
14{
15 return -1;
16}
17static __inline int gl_flip(const void *fb, int w, int h)
18{
19 return -1;
20}
21static __inline void gl_finish(void)
22{
23}
24
25#define gl_es_display (void *)0
26#define gl_es_surface (void *)0
27
28#endif
29
30#define GL_QUIRK_ACTIVATE_RECREATE 1