From 1db9b0b8853ab5179a0113fc496fc92141cd858e 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: Sun, 25 Oct 2026 07:14:17 +0300 Subject: [PATCH] clarify --- components/raybri/raybri.c | 4 ++-- components/raybri/raybriConst.c | 3 +++ components/raybri/raybriConst.h | 2 +- ogs-blue/ver-mac/src/raybri/raybriConst.c | 1 + ogs-chkgfx/ver-mac/src/raybri/raybriConst.c | 1 + ogs-mahjong/ver-mac/src/raybri/raybriConst.c | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 components/raybri/raybriConst.c create mode 120000 ogs-blue/ver-mac/src/raybri/raybriConst.c create mode 120000 ogs-chkgfx/ver-mac/src/raybri/raybriConst.c create mode 120000 ogs-mahjong/ver-mac/src/raybri/raybriConst.c diff --git a/components/raybri/raybri.c b/components/raybri/raybri.c index a0bfe15..6593117 100644 --- a/components/raybri/raybri.c +++ b/components/raybri/raybri.c @@ -1,6 +1,5 @@ #include "raybri.h" #include "raybriAux.h" -#include "raybriConst.h" #include "rlgl.h" void raybriInit(void) { @@ -8,7 +7,8 @@ void raybriInit(void) { // Load OpenGL extensions rlLoadExtensions((void *)raybriGLLoader); - // Use default 1x1 window size for successful init + // Initialize raylib graphics layer with a placeholder 1x1 framebuffer size + // Graphics layer includes default texture, shader, render batch and OpenGL state rlglInit(1, 1); // Background is painted in blue rlClearColor(0, 0, 255, 255); diff --git a/components/raybri/raybriConst.c b/components/raybri/raybriConst.c new file mode 100644 index 0000000..bc427dc --- /dev/null +++ b/components/raybri/raybriConst.c @@ -0,0 +1,3 @@ +#include "raybriConst.h" + +const char RAYBRI_MAC_GL[] = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; diff --git a/components/raybri/raybriConst.h b/components/raybri/raybriConst.h index d35046f..cde42ee 100644 --- a/components/raybri/raybriConst.h +++ b/components/raybri/raybriConst.h @@ -1,6 +1,6 @@ #ifndef RAYBRI_CONST_H #define RAYBRI_CONST_H -static const char RAYBRI_MAC_GL[] = "/System/Library/Frameworks/OpenGL.framework/OpenGL"; +extern const char RAYBRI_MAC_GL[]; #endif // RAYBRI_CONST_H diff --git a/ogs-blue/ver-mac/src/raybri/raybriConst.c b/ogs-blue/ver-mac/src/raybri/raybriConst.c new file mode 120000 index 0000000..fe840ed --- /dev/null +++ b/ogs-blue/ver-mac/src/raybri/raybriConst.c @@ -0,0 +1 @@ +../../../../components/raybri/raybriConst.c \ No newline at end of file diff --git a/ogs-chkgfx/ver-mac/src/raybri/raybriConst.c b/ogs-chkgfx/ver-mac/src/raybri/raybriConst.c new file mode 120000 index 0000000..fe840ed --- /dev/null +++ b/ogs-chkgfx/ver-mac/src/raybri/raybriConst.c @@ -0,0 +1 @@ +../../../../components/raybri/raybriConst.c \ No newline at end of file diff --git a/ogs-mahjong/ver-mac/src/raybri/raybriConst.c b/ogs-mahjong/ver-mac/src/raybri/raybriConst.c new file mode 120000 index 0000000..fe840ed --- /dev/null +++ b/ogs-mahjong/ver-mac/src/raybri/raybriConst.c @@ -0,0 +1 @@ +../../../../components/raybri/raybriConst.c \ No newline at end of file