1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-05 13:53:38 +00:00
Commit graph

102 commits

Author SHA1 Message Date
bjorn bb48cdadfb xcb backend respects LOVR_USE_GLFW; 2024-06-06 09:57:30 -07:00
bjorn b0de12a5ae xcb: raw mouse input; 2024-06-06 09:46:54 -07:00
bjorn 030622c546 xcb: xkb; 2024-06-06 09:46:54 -07:00
bjorn 74a247ce9f Fixes; 2024-06-06 09:46:54 -07:00
bjorn 75619a6bc4 Start xcb backend; 2024-06-06 09:46:54 -07:00
bjorn 9301c73f14 Live reloading;
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.
2024-05-27 03:08:38 -07:00
bjorn dc4e6873ad Fix glslang revision; 2024-05-27 02:33:58 -07:00
bjorn 599186f633 tup: generate glslang build_info.h; 2024-05-19 02:03:23 -07:00
bjorn 33d3efeb27 rm ode; 2024-05-18 18:30:33 -07:00
bjorn c37cd3852f tup: add -Wno-strict-prototypes for now;
glslang and ODE are the troublemakers.  I updated glslang but I'm too
lazy to update ODE, so I'm just gonna wait until we switch to jolt.
2024-03-29 18:04:42 -07:00
bjorn 6347114030 Job system; 2024-02-28 12:31:34 -08:00
bjorn 64e253a8ef mv logo shader to nogame bundle; 2024-02-21 10:21:42 -08:00
bjorn d4e2736e0b Update glslang;
Includes a fix for generating SPIRV for multiple shader stages.

Also reverts a buggy upstream commit temporarily.
2024-02-20 10:17:20 -08:00
bjorn eecd201f57 tup: use version-qualified library name for LuaJIT; 2024-02-20 09:35:56 -08:00
bjorn c6f010a572 tup: fix build; support toggling between jolt/ode; 2024-02-20 09:35:56 -08:00
bjorn a90c4092f8 glslang: Add -gVS when compiling default shaders for debug build;
This allows RenderDoc to debug the default shaders.
2024-01-20 21:47:27 -08:00
bjorn 0a17cc566d Add nogame bundle; CMake zips and concats nogame; 2023-11-27 18:42:49 -08:00
bjorn f50e9f6fe1 Use miniz to decompress files; 2023-11-21 18:49:32 -08:00
bjorn d0f1462e51 Make Archive a refcounted object;
- 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.
2023-11-21 18:49:32 -08:00
bjorn 27c1f50774 tup: sanitize also adds undefined behavior sanitizer; 2023-10-05 12:23:12 -07:00
bjorn cf744ace83 tup: add MSDFGEN_PUBLIC define; 2023-10-03 11:17:06 -07:00
bjorn a2f539de56 Update glslang; Shader #include uses virtual filesystem;
This update seemed to increased glslang's binary size even more...
2023-09-28 22:04:05 -07:00
bjorn 1d91ea1fde Replace tinycthread with C11 threads.h polyfill; 2023-09-21 23:26:16 -07:00
bjorn 479983fede gpu: surface improvements;
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.
2023-09-20 21:17:24 -07:00
bjorn f35d5c9c70 Re-enable objective-c extensions on os_macos;
Locally this worked, but maybe CMake was stale.
2023-09-20 17:58:13 -07:00
bjorn c5793c2410 macos: replace remaining Objective C with C API; 2023-09-20 17:48:01 -07:00
bjorn b643f3b695 Fix Tupfile; 2023-08-15 09:56:00 -07:00
bjorn 90994d023a tup: Add -DdNODEBUG to ode for release builds; 2023-08-01 00:21:32 -07:00
bjorn 0d30055dd7 webgpu/wasm updates;
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.
2023-07-09 13:13:58 -07:00
bjorn 5904d3997e tup: stop linking libc++ statically;
This will break Android.  The proper fix there is to move the c++
library into the APK like CMake recently started doing.
2023-07-03 13:14:55 -07:00
bjorn 447e746d41 Rename desktop driver to simulator internally;
The HeadsetDriver enumerant remains the same for now.
2023-06-29 16:24:51 -07:00
bjorn 51e3da75e1 Make utf8 module optional; 2023-05-11 08:16:18 +01:00
bjorn edb65a7578 Update glslang; 2023-04-19 20:49:30 -07:00
bjorn abbc6a6dc6 Merge branch 'master' into dev 2023-02-21 21:12:33 -08:00
bjorn 04c4dee851 rm -Os from glslangValidator flags;
It's not necessary
2023-02-21 21:11:29 -08:00
bjorn 1bc7af2a31 tup: fully support renaming android package; 2023-02-05 22:02:04 -08:00
bjorn 2144b5f81d Backport Lua utf8 library; 2023-02-03 23:17:43 -08:00
bjorn b6d8546a6f Merge branch 'master' into dev 2023-01-02 16:46:55 -08:00
bjorn 4a25b22c4a tup: use vendored vulkan headers; 2022-12-30 22:04:27 -08:00
bjorn e12563ad25 Merge branch 'master' into dev 2022-12-16 21:21:05 -08:00
bjorn 58cc96414a Add flag to omit GLFW from build; 2022-12-10 20:29:36 -08:00
bjorn 9b02f8cace webgpu -> wgpu; 2022-12-03 14:15:28 -08:00
bjorn 1d4236c18e tup: wasm defaults to emcc/emxx; 2022-12-02 23:13:48 -08:00
bjorn b81f86b5ad rm Android flavors for now;
There used to be oculus and pico but pico doesn't work anymore.

Eventually things will converge on the standard loader and we won't
need different loaders, but manifests may require flavors.
2022-11-09 00:21:49 -08:00
bjorn 56b091227d tup: rm cc override; 2022-10-20 21:28:54 -07:00
bjorn 20cb0d1c0a Tiny tup fix; 2022-10-15 21:48:55 -07:00
bjorn f8ad6e58ba tup: Allow overriding cc/cxx; 2022-10-12 00:46:48 -07:00
bjorn adaef45e2f tup: use -Os when invoking glslangValidator;
Saves a bit of space.
2022-09-14 20:53:42 -07:00
bjorn c524d2c4fc tup: only use address sanitizer;
Undefined behavior sanitize hasn't been working in shared libraries and
it's annoying.
2022-08-22 20:18:07 -07:00
bjorn 5fd6ef0b8f tup: add -rdynamic; 2022-08-12 21:08:08 -07:00