This commit is contained in:
Matthew 2026-05-18 04:12:09 +10:00
parent c7454e4695
commit 233d23e3a1
4 changed files with 16094 additions and 3 deletions

View File

@ -37,6 +37,11 @@
# include "../external/vma/vk_mem_alloc.h" # include "../external/vma/vk_mem_alloc.h"
#endif #endif
#ifndef BUILD_WASM
# define RGFW_IMPLEMENTATION
# include "../external/rgfw/rgfw.h"
#endif
#ifdef BUILD_GL #ifdef BUILD_GL
# include <GL/gl.h> # include <GL/gl.h>
# include <GL/glext.h> # include <GL/glext.h>

View File

@ -383,12 +383,12 @@ PushFree(PlatformWindow* w, SysMessage* node)
version(linux) version(linux)
{ {
import core.sys.posix.dlfcn; // import core.sys.posix.dlfcn;
import core.sys.posix.sys.mman; import core.sys.posix.sys.mman;
import core.sys.linux.sys.inotify; import core.sys.linux.sys.inotify;
import core.sys.linux.fcntl; // import core.sys.linux.fcntl;
import core.sys.posix.sys.time : timespec, timeval, gettimeofday; import core.sys.posix.sys.time : timespec, timeval, gettimeofday;
import core.sys.posix.unistd; import core.sys.posix.unistd : readlink;
import core.sys.posix.pthread : PThread = pthread_t, import core.sys.posix.pthread : PThread = pthread_t,
PThreadCond = pthread_cond_t, PThreadCond = pthread_cond_t,
PThreadMutex = pthread_mutex_t, PThreadMutex = pthread_mutex_t,

16085
external/rgfw/rgfw.h vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,7 @@ if [ "$1" == "wasm" ]; then
-i=std -i=std
-i=. -i=.
--real-precision=double --real-precision=double
-Xcc=-DBUILD_WASM
-gcc=clang -gcc=clang
"--of=$out" "--of=$out"
) )