Android support, attempt-1 #8

Open
kornerr wants to merge 62 commits from and1 into master
pull from: and1
2 changed files with 15 additions and 7 deletions
Showing only changes of commit 7b8c3181d5 - Show all commits

No files matched your search

+5 -1
View File
@@ -14,7 +14,11 @@
void raybriInit(void *layer) {
//SetTraceLogLevel(LOG_WARNING);
if (!raybriEGLInit()) {
EGLConfig cfg = NULL;
EGLContext ctx = EGL_NO_CONTEXT;
EGLDisplay display = EGL_NO_DISPLAY;
if (!raybriEGLInit(&cfg, &ctx, &display)) {
raybriLog("ERROR Could not initialize EGL");
}
+10 -6
View File
@@ -8,7 +8,11 @@
// Header
bool raybriEGLInit(void);
bool raybriEGLInit(
EGLConfig *cfg,
EGLContext *ctx,
EGLDisplay *display
);
bool raybriEGLResetSurface(
void *caLayer,
EGLConfig *cfg,
@@ -20,11 +24,11 @@ bool raybriEGLResetSurface(
#if defined(RAYBRI_EGL_IMPLEMENTATION)
bool raybriEGLInit(void) {
EGLConfig cfg = NULL;
EGLContext ctx = EGL_NO_CONTEXT;
EGLDisplay display = EGL_NO_DISPLAY;
bool raybriEGLInit(
EGLConfig *cfg,
EGLContext *ctx,
EGLDisplay *display
){
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
if (display == EGL_NO_DISPLAY) {
return false;