Use -w or --watch to watch source directory for changes and call
lovr.filechanged when a file is changed.
By default lovr.filechanged will restart lovr.
It's powered by lovr.filesystem.watch/lovr.filesystem.unwatch functions,
but these are currently hardcoded to only watch the whole source folder.
Currently there is a bug where it only restarts on the first change,
this is seemingly a problem with dmon.
Currently doing a debug build on windows spews libc linker errors.
Jolt clobbers the global CMake C flags, and CMake uses those C flags for
the MSVCRT library, so Jolt is using the wrong libc.
Both projects realized that they were doing something sus, so:
- Jolt added OVERRIDE_CXX_FLAGS to opt out of clobbering the cflags, but
joltc hasn't copied over this change yet.
- CMake added a higher level MSVC_RUNTIME_LIBRARY target property for
changing the MSVCRT, but it's only enabled if you opt into policy #91.
For now we're just going to enable the policy...
joltc's current CMakeLists forces itself to build as a shared library on
PC/Android. However, it builds Jolt using the current value of
BUILD_SHARED_LIBS.
We currently have BUILD_SHARED_LIBS set to ON when adding joltc, so we
end up with 2 shared libraries, which is cumbersome. We'd rather just
have a single library for Jolt. So instead, let's set BUILD_SHARED_LIBS
to off when adding the project, which will build Jolt as a static
library and joltc as a shared library (linking to the static library).
That way we just end up with a single shared library that contains both
joltc and Jolt.
The C4255 warning in MSVC complains about function lacking explicit list
of arguments (`f()` instead of `f(void)`). Disabling this warning allows
joltc to build on windows platform.
- Archive is now an object that has a refcount
- Archives are stored in linked list instead of array
- Not exposed to Lua yet, but could be in the future
- core/zip was merged into the filesystem module
- Mountpoints are handled centrally instead of per-archive
- Zip doesn't pre-hash with the mountpoint anymore
- mtime is truly only computed on request for zips
Mountpoints don't work properly yet.
This fixes issues where some fonts would have glyphs with weird windings
and they would get rendered inside-out.
Unfortunately updating msdfgen increased its size by a factor of 2-3x.
Restores ability to open window after initializing graphics module.
Surface is created lazily instead of being required upfront.
Use native platorm handles instead of GLFW's callbacks.
Some minor reorganization around core/gpu present API and xr transitions.
Linux links against libxcb/libX11/libX11-xcb for XGetXCBConnection.
Some compile fixes and a rename from gpu_wgpu to gpu_web, since wgpu
refers to a specific implementation of WebGPU and I'm really bad at
typing it for some reason.