pandora: add tv layer selection helper
[libpicofe.git] / gl.h
CommitLineData
7bf7acb6
GI
1#ifndef LIBPICOFE_GL_H
2#define LIBPICOFE_GL_H
3
b9801854 4#ifdef HAVE_GLES
5
0d645bc5 6int gl_init(void *display, void *window, int *quirks);
b9801854 7int gl_flip(const void *fb, int w, int h);
8void gl_finish(void);
9
6fd09356 10/* for external flips */
11extern void *gl_es_display;
12extern void *gl_es_surface;
13
b9801854 14#else
15
0d645bc5 16static __inline int gl_init(void *display, void *window, int *quirks)
17{
18 return -1;
19}
20static __inline int gl_flip(const void *fb, int w, int h)
21{
22 return -1;
23}
24static __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