Commit | Line | Data |
---|---|---|
7bf7acb6 GI |
1 | #ifndef LIBPICOFE_GL_H |
2 | #define LIBPICOFE_GL_H | |
3 | ||
b9801854 | 4 | #ifdef HAVE_GLES |
5 | ||
0d645bc5 | 6 | int gl_init(void *display, void *window, int *quirks); |
b9801854 | 7 | int gl_flip(const void *fb, int w, int h); |
8 | void gl_finish(void); | |
9 | ||
6fd09356 | 10 | /* for external flips */ |
11 | extern void *gl_es_display; | |
12 | extern void *gl_es_surface; | |
13 | ||
b9801854 | 14 | #else |
15 | ||
0d645bc5 | 16 | static __inline int gl_init(void *display, void *window, int *quirks) |
17 | { | |
18 | return -1; | |
19 | } | |
20 | static __inline int gl_flip(const void *fb, int w, int h) | |
21 | { | |
22 | return -1; | |
23 | } | |
24 | static __inline void gl_finish(void) | |
25 | { | |
26 | } | |
b9801854 | 27 | |
6fd09356 | 28 | #define gl_es_display (void *)0 |
29 | #define gl_es_surface (void *)0 | |
30 | ||
b9801854 | 31 | #endif |
0d645bc5 | 32 | |
33 | #define GL_QUIRK_ACTIVATE_RECREATE 1 | |
7bf7acb6 GI |
34 | |
35 | #endif // LIBPICOFE_GL_H |