kokokoshka
7e52ffe956
MinGW support
2021-06-18 15:45:26 -06:00
bjorn
fa47ecbdd3
v0.15.0;
2021-04-11 08:57:11 -06:00
bjorn
2b94bcb46e
Add quat_identity;
2021-04-03 18:38:23 -06:00
bjorn
0ef48d3d26
os_web: fix mouse support;
...
Not sure why this got removed.
2021-03-31 11:24:52 -06:00
bjorn
fd39ed9420
os_android: fix improper cast;
2021-03-24 14:32:56 -06:00
mcc
e3c2b5b865
Fix Android build
...
- Fix typos after refactor
- Fix CMake when using ANDROID_PACKAGE
2021-03-22 14:09:16 -06:00
bjorn
2d43620d3c
rm LOVR_ALIGN;
...
It isn't very portable, the effects aren't significant.
2021-03-15 18:56:02 -06:00
bjorn
45e43bacb3
os_web fixes;
2021-03-07 22:04:23 -07:00
bjorn
746735259c
Windows: Always use WinMain for UTF8 command line arguments;
...
This fixes problems with paths containing special characters on windows.
2021-03-02 11:49:08 -07:00
bjorn
a09b7de545
lovr.system.getCoreCount;
2021-02-25 09:30:05 -07:00
bjorn
4f5adbc64c
lovr.system;
2021-02-25 09:00:12 -07:00
bjorn
1d1a2de124
Only use CTZL in audio;
2021-02-24 14:11:49 -07:00
bjorn
fb1447503b
Fix gcc warnings;
2021-02-19 23:44:23 -07:00
bjorn
a2b7e1619d
Fix wasm compilation issues;
2021-02-19 09:05:57 -07:00
bjorn
75fda2336f
Enforce strict limit of 64 active sources;
...
If 64 sources are playing and a new one is started, Source:play will
return false.
Instead of a linked list, a static list of 64 Sources is used.
Bit scanning intrinsics are used to efficiently iterate the list,
using a mask (still deciding on this).
2021-02-17 20:46:33 -07:00
bjorn
72284c2c5b
Merge branch 'master' into dev
2021-02-12 08:16:36 -07:00
bjorn
023067ec27
util.h no longer uses atomics;
2021-02-11 16:37:55 -07:00
bjorn
7db979b655
Fix arr_free;
...
realloc(NULL, 0) isn't valid.
2021-02-09 08:15:43 -07:00
bjorn
84f65c26e4
Move utf8 back into util;
2021-02-08 20:55:51 -07:00
bjorn
8c714c45b0
Clean up some includes;
2021-02-08 11:16:00 -07:00
bjorn
6d92d54079
Try having arr_t in util;
2021-02-08 18:25:05 -07:00
bjorn
bc4cde1653
Adjust lovrRelease signature;
2021-02-08 17:52:26 -07:00
bjorn
3ded60948f
rm core/ref; rm lovrAlloc; util does refcounting;
2021-02-08 17:26:44 -07:00
bjorn
ccc53a10aa
Cleanup;
2021-02-08 16:08:29 -07:00
bjorn
68f5bb3095
Fix style issues;
2021-02-08 16:08:29 -07:00
bjorn
cb8e1b5b91
Fix compile errors;
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
5e66ecf000
lovrPlatformRequest{AudioCapture->Permission}(Perm) + platform stubs
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
0265babef4
Android: Ask for permissions on demand
...
By looking for failed start and requesting then;
and then emitting a new event type when
permission has been granted or rejected;
and then using that event in the default
boot.lua to re-start capture.
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
6f803ad3f0
filesystem.append didn't append in Unix
2021-02-08 16:08:29 -07:00
bjorn
1dd692a009
lovrPlatformGetWindow -> lovrPlatformGetWin32Window;
2021-02-07 16:57:08 -07:00
bjorn
323436898a
Add WIN32_LEAN_AND_MEAN;
2021-02-07 16:49:34 -07:00
bjorn
d2ff6c29ac
Change inclusive module defines to exclusive;
...
This reduces the number of flags needed to get a regular build.
2021-02-07 16:45:03 -07:00
bjorn
cf2ab46bef
Fix arr_splice;
2021-02-04 01:41:35 -07:00
Josip Miskovic
944a6029f0
Add mat4:targetAt and modify the mat4:lookAt
...
lookAt() returns view matrix that can be used to transform the camera
perspective. target() returns model matrix that is used to change
model transform. Results are matrix inversions of one another. Now both
functions exist it is possible to use right one and avoid extra matrix
inversion.
2021-01-22 16:01:27 +01:00
bjorn
31defbe145
maf windows PI fix;
2020-12-28 12:37:19 -07:00
bjorn
3bc2c00b79
api doesn't include util;
2020-12-25 12:50:26 -07:00
bjorn
9bdceb0094
rm LOVR_INLINE;
...
Just use the inline keyword which is C99. Getting util.h out of
maf.h is nice.
2020-12-25 12:29:22 -07:00
bjorn
1a8f972f39
rm MAF_EXPORT;
...
It was only used when exporting functions for JavaScript.
2020-12-25 12:22:42 -07:00
Bjorn
c1b3bc61b1
Merge pull request #340 from alloverse/fix/append
...
filesystem.append didn't append in Unix
2020-11-27 18:53:44 -07:00
Colby Klein
08025b9ac0
fix mat4_lookAt translation offset
...
need to dot with the axes to not have bizarre results.
2020-11-27 17:48:33 -08:00
Nevyn Bengtsson
c557a8585f
filesystem.append didn't append in Unix
2020-11-26 22:54:41 +01:00
bjornbytes
80a33c0544
mat4_multiply -> mat4_mul;
...
quat_mul vs. mat4_multiply is inconsistent. Going with mul over
multiply is consistent with vec3_sub and Lua's __mul metamethod.
2020-11-21 14:32:59 -07:00
Jakob Bornecrantz
ca04882093
OpenXR: Add support for X11 and EGL on Linux
2020-11-16 17:02:51 -07:00
bjornbytes
94e7bafe47
KeyCode -> KeyboardKey because X11 conflict;
2020-11-16 17:02:51 -07:00
Bjorn
8a3d365268
Merge pull request #299 from Wallbraker/linux-openxr
...
Linux OpenXR support
2020-11-16 13:51:41 -07:00
Josip Miskovic
ceaac78439
Fix NaN return from mat4 unpacking
...
The caluclated angle is forced to PI if cos(angle) falls outside the
[-1, +1] range due to floating point precision error.
2020-11-16 19:03:52 +01:00
Jakob Bornecrantz
1400cd201a
OpenXR: Add support for X11 and EGL on Linux
2020-11-15 22:51:20 +00:00
bjornbytes
0b73e7d7a6
KeyCode -> KeyboardKey because X11 conflict;
2020-11-15 22:51:20 +00:00
bjorn
5f0542cc43
Fix util declspec spacing;
2020-11-12 18:08:05 -07:00
bjorn
827dfda748
TextureData:encode returns Blob; rm core/png;
2020-11-12 18:08:05 -07:00