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