bjorn
557fd5953d
Better DistanceJoint defaults;
...
The anchors default to the collider positions instead of the origin.
2024-06-24 15:39:31 -07:00
bjorn
1531d4f179
Better ConeJoint defaults;
2024-06-24 15:17:25 -07:00
bjorn
ab13890f80
Fix Joint:getForce/Torque for ConeJoint;
2024-06-24 15:03:33 -07:00
bjorn
46c75fa066
BallJoint anchor defaults to one of the collider positions;
...
Instead of the origin.
2024-06-24 14:28:59 -07:00
bjorn
6e295a9a05
Fix crash when destroying single-collider joint;
2024-06-24 14:22:12 -07:00
bjorn
9fac6bbefb
WeldJoint auto-detects anchor;
2024-06-24 14:08:05 -07:00
bjorn
5f5e8f2d9e
cmake: add ENABLE_EXPORTS on macos/linux/wasm;
...
Revision 7373bb bumped CMake version from 3.3 to 3.5, and in 3.4 CMake
stopped exporting symbols in executables by default. lovr relies on
this so ffi can load a few symbols like os_get_glfw_window.
Don't enable it on Android because executables aren't built there, and
don't do it on Windows because it produces an annoying .lib file and
isn't necessary.
2024-06-23 03:18:39 -07:00
bjorn
b7765e9e15
Improve support for buffers with runtime-sized arrays;
...
- The last top-level field of a buffer can have a length of -1 to make
it a "dynamic array".
- When a buffer has a dynamic array, lovr tries to guess its length:
- if no data is given or the data is a table and it's missing the key,
the length defaults to 1.
- if the data is a table and the table has a key with the array's
name, the length of that table is used as the dynamic array's length
- Note: This does not account for structs that are using integer
keys (although this messes up length calculation anyway)
- Note: This does not account for "flat" arrays that are using
numbers for vector types.
- if the data is a blob, use the size of the blob to figure out the
length of the array.
- Shader:getBufferFormat returns -1 for dynamic arrays that are nested
inside of a struct. It still returns nil for the "main format length"
if buffer just consists of a dynamic array.
2024-06-23 00:18:58 -07:00
bjorn
99ef988a99
nogame: gate conf.lua on bundle path instead of exe path;
...
This means that the nogame screen will use the conf.lua correctly on
Android. Desktop platforms are not affected.
2024-06-22 23:06:43 -07:00
bjorn
678a173119
Use 1.0 XR API version;
...
Some runtimes don't seem to support OpenXR 1.1 yet.
2024-06-22 23:06:43 -07:00
bjorn
dd38ee9251
Update OpenXR to 1.1.38;
2024-06-22 23:06:43 -07:00
bjorn
c68e38baa7
Upgrade Android Manifest SDK version;
...
Based on Quest recommendation.
2024-06-22 23:06:43 -07:00
bjorn
6a7ab183f9
core/os: use dimensions for borderless instead of fullscreen;
...
matches glfw behavior
2024-06-20 21:30:13 -07:00
bjorn
19cdec8fd0
Rename win32 icon resource to GLFW_ICON;
...
GLFW will use this to set the window icon.
2024-06-19 18:34:15 -07:00
bjorn
899ffeda4e
rm deterministic World option;
...
It provides no measurable performance impact. Better to leave it on, so
as to not have to explain it.
2024-06-18 18:57:02 -07:00
bjorn
cab754114d
Rename minBounceVelocity to restitutionThreshold;
2024-06-18 18:55:12 -07:00
bjorn
7ff506fdea
Rename tickLimit to maxSteps; Fix interpolation when limited;
2024-06-18 18:48:40 -07:00
bjorn
3255078d67
Rename tickRate World option to timestep;
...
It is also in seconds instead of Hz, and doesn't suffer from integer
rounding.
2024-06-18 18:20:58 -07:00
bjorn
7d9502babf
rm lovr.getVersion test;
...
This was just added to test the testing system, and will be annoying to
keep up to date.
2024-06-18 16:09:45 -07:00
bjorn
d82006af32
Fix possible crash with Blob:getName;
2024-06-18 16:08:33 -07:00
bjorn
c6ba33b418
Error if BoxShape dimensions are negative;
2024-06-18 15:40:57 -07:00
bjorn
b0e8986e27
Fix Buffer:setData with Blob and Buffer;
2024-06-18 15:38:44 -07:00
bjorn
b363871e2c
Early exit when rewiring uniforms;
2024-06-15 22:43:59 -07:00
bjorn
62beb8e4cc
Fix issue where draws would use wrong uniform buffer size;
2024-06-15 22:39:11 -07:00
bjorn
df3cd06091
Add uniform tests;
2024-06-15 12:08:54 -07:00
bjorn
0e3b45c5e5
Avoid creating render pass when canvas is nil;
2024-06-15 12:03:59 -07:00
bjorn
af32526d2f
Fix issues with uniform buffer binding;
2024-06-15 12:03:59 -07:00
Bjorn
0142355fd4
Merge pull request #785 from bjornbytes/test
...
Tests
2024-06-14 17:06:00 -07:00
bjorn
feec8f8841
Run tests on windows/macos;
2024-06-14 16:59:05 -07:00
bjorn
7ffd884f22
Fix issue on Linux when .local/share doesn't exist;
2024-06-14 16:59:05 -07:00
bjorn
1ebb5a9cbb
tests;
2024-06-14 16:59:04 -07:00
bjorn
44f7ed6d28
CMake: avoid include_directories;
2024-06-14 03:01:25 -07:00
bjorn
7663167aa8
CMake: Tell Jolt to generate debug symbols sometimes;
2024-06-13 21:49:05 -07:00
bjorn
867dc14e19
Error when Contact is used outside of a World callback;
...
Not perfect, but should catch most usage.
2024-06-13 21:28:34 -07:00
bjorn
4b0d73868a
Give Contact a refcount;
...
Contacts are not refcounted, but their refcount is decremented when they
are collected/released.
2024-06-13 21:27:54 -07:00
bjorn
b05c7a1c63
Add Contact to enter callback;
2024-06-13 21:08:41 -07:00
bjorn
6b18734e83
Remove OVERRIDE_MSVCCRT glslang CMake variable;
...
It was removed from newer versions of glslang.
2024-06-12 14:26:28 -07:00
bjorn
449004971d
Fix physics query callbacks;
...
Co-Authored-By: xiejiangzhi <xiejiangzhi@gmail.com>
2024-06-11 22:32:39 -07:00
bjorn
a0c4b0e524
Update glslang;
...
To see if it fixes Windows CI failures...
2024-06-10 14:27:52 -07:00
bjorn
5874cc562a
More fixes for shader resource mapping;
...
- Unused variables (set=0 + binding=0) were not getting binding numbers
assigned.
- The various "masks" for buffer/texture/storage etc. were conflating
binding numbers with resource index. These were always the same, but
this wasn't the case for an unused variable. Change it to always be
the binding number, to avoid confusion.
2024-06-10 14:15:25 -07:00
bjorn
4b0a3c4ba4
Fixes for Shader:getBufferFormat;
2024-06-07 11:17:37 -07:00
bjorn
dbcfb01da0
actions: update ubuntu package list;
2024-06-06 10:21:52 -07:00
bjorn
bb48cdadfb
xcb backend respects LOVR_USE_GLFW;
2024-06-06 09:57:30 -07:00
bjorn
44ef12c59c
More CMake fixes;
2024-06-06 09:46:54 -07:00
bjorn
5648aff209
CMake: link against xcb-xinput;
2024-06-06 09:46:54 -07:00
bjorn
f89ac9133a
xcb: details;
2024-06-06 09:46:54 -07:00
bjorn
b0de12a5ae
xcb: raw mouse input;
2024-06-06 09:46:54 -07:00
bjorn
68a7208e36
WIP mouse grabbing;
2024-06-06 09:46:54 -07:00
bjorn
7bdb679493
xcb: key repeat;
2024-06-06 09:46:54 -07:00
bjorn
7429f88e4f
xcb: fix window size hints;
2024-06-06 09:46:54 -07:00