From cc2748efb768f5cef2ee98d9b680fb6e2f8fd248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Thu, 29 Oct 2026 16:00:23 +0300 Subject: [PATCH] const --- components/raybri/ios/raybriEGL.h | 1 + components/raybri/ios/raybriEGLConst.h | 33 ++++++++++++++++++++ ogs-blue/ver-ios/src/raybri/raybriEGLConst.h | 1 + 3 files changed, 35 insertions(+) create mode 100644 components/raybri/ios/raybriEGLConst.h create mode 120000 ogs-blue/ver-ios/src/raybri/raybriEGLConst.h 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