1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#ifndef EGLSUPPORT_H
#define EGLSUPPORT_H
#include <SDL.h>
/*
* Returns 1 if this is an EGL platform, or 0 if we are not an EGL platform.
*/
int egl_available(void);
/*
* If an EGL error has occured, returns a string giving ther error. `where`
* is text that's included in that string.
*/
char *egl_error(char *where);
/*
* Initializes the egl system. `interval` is the vsync refresh interval,
* usually either 1 or 0. Returns NULL on success, or a string if
* initialization has failed.
*/
char *egl_init(SDL_Window *, int interval);
/*
* Tells EGL to swap buffers.
*/
void egl_swap(void);
/*
* Deinitializes EGL support.
*/
void egl_quit(void);
#endif
|