add some simple EGL output code

my first ever GL code, yay!
This commit is contained in:
notaz 2012-12-21 00:10:12 +02:00
parent 14fa485ef2
commit b98018548f
2 changed files with 191 additions and 0 deletions

13
gl.h Normal file
View file

@ -0,0 +1,13 @@
#ifdef HAVE_GLES
int gl_init(void *display, void *window);
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) {}
#endif