raybriAux

This commit is contained in:
Михаил Капелько committed 2026-10-25 06:45:21 +03:00
1 parent 9d2c03d3e0
commit 788ce06d5a
5 files changed
+28 -15

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#include "raybriAux.h"
#include "raybriConst.h"
// raylib is built as a static/dynamic library with GLFW baked in, but we never
// call InitWindow(). Instead we render into an OpenGL context owned by the
// macOS app, so we must supply the OpenGL entry point loader ourselves.
void *raybri_gl_loader(const char *name) {
static void *handle = NULL;
if (handle == NULL) {
handle = dlopen(RAYBRI_MAC_GL, RTLD_LAZY | RTLD_LOCAL);
}
if (handle == NULL) {
return NULL;
}
return dlsym(handle, name);
}