19 lines
368 B
C
19 lines
368 B
C
#include "raybriEGL.h"
|
|
|
|
bool raybriEGLInit(void) {
|
|
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
|
if (display == EGL_NO_DISPLAY) {
|
|
return false;
|
|
}
|
|
|
|
if (eglInitialize(display, NULL, NULL) == EGL_FALSE) {
|
|
return false;
|
|
}
|
|
|
|
if (eglBindAPI(EGL_OPENGL_ES_API) == EGL_FALSE) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|