add some VideCore/R-pi support code

This commit is contained in:
notaz 2012-12-22 03:10:53 +02:00
parent e54719efea
commit 0d645bc539
5 changed files with 153 additions and 7 deletions

18
gl.h
View file

@ -1,13 +1,23 @@
#ifdef HAVE_GLES
int gl_init(void *display, void *window);
int gl_init(void *display, void *window, int *quirks);
int gl_flip(const void *fb, int w, int h);
void gl_finish(void);
#else
static __inline int gl_init(void *display, void *window) { return -1; }
static __inline int gl_flip(const void *fb, int w, int h) { return -1; }
static __inline void gl_finish(void) {}
static __inline int gl_init(void *display, void *window, int *quirks)
{
return -1;
}
static __inline int gl_flip(const void *fb, int w, int h)
{
return -1;
}
static __inline void gl_finish(void)
{
}
#endif
#define GL_QUIRK_ACTIVATE_RECREATE 1