diff --git a/components/raybri/ios/raybriEGL.h b/components/raybri/ios/raybriEGL.h index 32c4700..1f172fa 100644 --- a/components/raybri/ios/raybriEGL.h +++ b/components/raybri/ios/raybriEGL.h @@ -29,6 +29,7 @@ bool raybriEGLInit(void) { return true; } + #endif // RAYBRI_EGL_IMPLEMENTATION #endif // RAYBRI_EGL_H diff --git a/components/raybri/ios/raybriEGLConst.h b/components/raybri/ios/raybriEGLConst.h new file mode 100644 index 0000000..91953d1 --- /dev/null +++ b/components/raybri/ios/raybriEGLConst.h @@ -0,0 +1,33 @@ +#ifndef RAYBRI_EGL_CONST_H +#define RAYBRI_EGL_CONST_H + +#include + +// Header + +extern const EGLint RAYBRI_EGL_CFG[]; +extern const EGLint RAYBRI_EGL_CTX[]; + +// Source + +const EGLint RAYBRI_EGL_CFG[] = { + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES3_BIT, + EGL_SURFACE_TYPE, EGL_WINDOW_BIT, + EGL_RED_SIZE, 8, + EGL_GREEN_SIZE, 8, + EGL_BLUE_SIZE, 8, + EGL_ALPHA_SIZE, 8, + EGL_DEPTH_SIZE, 16, + EGL_NONE +}; + +const EGLint RAYBRI_EGL_CTX[] = { + EGL_CONTEXT_CLIENT_VERSION, 3, + EGL_NONE +}; + +#if defined(RAYBRI_EGL_CONST_IMPLEMENTATION) + +#endif // RAYBRI_EGL_CONST_IMPLEMENTATION + +#endif // RAYBRI_EGL_CONST_H diff --git a/ogs-blue/ver-ios/src/raybri/raybriEGLConst.h b/ogs-blue/ver-ios/src/raybri/raybriEGLConst.h new file mode 120000 index 0000000..2674f03 --- /dev/null +++ b/ogs-blue/ver-ios/src/raybri/raybriEGLConst.h @@ -0,0 +1 @@ +../../../../components/raybri/ios/raybriEGLConst.h \ No newline at end of file