Support iOS for ogs-blue #7
No files matched your search
@@ -14,7 +14,11 @@
|
|||||||
void raybriInit(void *layer) {
|
void raybriInit(void *layer) {
|
||||||
//SetTraceLogLevel(LOG_WARNING);
|
//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");
|
raybriLog("ERROR Could not initialize EGL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,11 @@
|
|||||||
|
|
||||||
// Header
|
// Header
|
||||||
|
|
||||||
bool raybriEGLInit(void);
|
bool raybriEGLInit(
|
||||||
|
EGLConfig *cfg,
|
||||||
|
EGLContext *ctx,
|
||||||
|
EGLDisplay *display
|
||||||
|
);
|
||||||
bool raybriEGLResetSurface(
|
bool raybriEGLResetSurface(
|
||||||
void *caLayer,
|
void *caLayer,
|
||||||
EGLConfig *cfg,
|
EGLConfig *cfg,
|
||||||
@@ -20,11 +24,11 @@ bool raybriEGLResetSurface(
|
|||||||
|
|
||||||
#if defined(RAYBRI_EGL_IMPLEMENTATION)
|
#if defined(RAYBRI_EGL_IMPLEMENTATION)
|
||||||
|
|
||||||
bool raybriEGLInit(void) {
|
bool raybriEGLInit(
|
||||||
EGLConfig cfg = NULL;
|
EGLConfig *cfg,
|
||||||
EGLContext ctx = EGL_NO_CONTEXT;
|
EGLContext *ctx,
|
||||||
EGLDisplay display = EGL_NO_DISPLAY;
|
EGLDisplay *display
|
||||||
|
){
|
||||||
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||||
if (display == EGL_NO_DISPLAY) {
|
if (display == EGL_NO_DISPLAY) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in new issue
Block a user