bjorn
fdfcb5539f
Merge branch 'master' into dev
2022-03-14 13:19:59 -07:00
bjorn
b22dbd8f0c
Add luax_checku32 and luax_optu32;
...
These functions read an unsigned 32 bit integer from the Lua stack
and error if the value is negative or too big. Currently converting
Lua numbers to integers will silently wrap or invoke undefined behavior
when they are outside of the acceptable range.
For projects that don't want the overhead of type/bounds checks, the
supercharge build option (LOVR_UNCHECKED) can now be used to skip all
type/bounds checks.
2022-02-21 14:19:24 -08:00
bjorn
88f367c0e5
Declare data module constructors consistently;
2022-02-21 14:01:47 -08:00
bjorn
61730dd89b
ModelData exposes its animations;
2021-10-08 14:25:03 -07:00
bjorn
6f6e7eea1b
Better newSound error messages;
2021-04-02 23:35:18 -06:00
bjorn
e63099ba6a
Flatten api.h;
2021-03-15 18:54:27 -06:00
bjorn
5d542eb2ea
Minor Sound cleanup;
2021-02-24 14:11:49 -07:00
bjorn
36170678f0
Sound: Change channel count to channel layout;
2021-02-18 21:17:25 -07:00
bjorn
8164e0b6e8
TextureData is now named Image!;
...
The existing Image construct was renamed StorageImage.
2021-02-08 20:17:47 -07:00
bjorn
dca79f83f0
SoundData is now named Sound!;
2021-02-08 19:52:56 -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
111a376a2e
SoundData;
2021-02-08 16:08:29 -07:00
bjorn
e0ac328a72
SoundData WIP; WAV importer;
2021-02-08 16:08:29 -07:00
bjorn
93ea56155e
scribbling;
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
044a5a47d9
allow configuring sound format and sample rate
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
8133966148
take out lovrDataNewSoundDataStream
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
3e003d55b9
Separate SoundData and SoundDataStrema constructors
...
they take the same arguments so we can't overload
the function parameterically.
also I find it pretty confusing that lovr uses
overloads so much in the api,
so I really don't mind having
a separate constructor :S
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
d1f6e27437
SoundData stream lua API
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
7b58561c03
lovrSoundFormat
2021-02-08 16:08:29 -07:00
Nevyn Bengtsson
cd1cddcd93
WIP streaming SoundData
...
It seems Bjorn had the idea to back SoundData with
an array of buffers, so I'm running
with that but changing the array
into a ringbuffer.
2021-02-08 16:08:29 -07:00
bjorn
c92b47e3a6
Another miniaudio attempt WIP;
2021-02-08 16:08:29 -07:00
bjorn
51f470cf85
Easier enums;
2020-09-27 17:13:00 -07:00
bjorn
ec257b179f
Support Lua 5.2, 5.3, 5.4;
2020-08-19 13:12:57 -06:00
bjorn
37d8df4784
Allow initializing empty TextureData with Blob;
2020-03-29 13:47:57 -06:00
bjorn
18dcb07b98
Convert stuff over to use new enum system;
2020-02-16 18:31:02 -08:00
bjorn
bb7bcb9b3d
Fix lovr.data.newBlob(blob);
2020-01-13 20:39:43 -08:00
Nevyn Bengtsson
5232aa2ff2
RawAudioStream: Add a limit to amount of queued data
...
This is useful for making sure the audio subsystem doesn't go haywire with too much generated data
2020-01-04 23:49:58 +01:00
Nevyn Bengtsson
4fb4f6cdd1
RawAudioStream lua API
2020-01-03 17:15:12 +01:00
bjorn
403ed8d3b0
Windows;
2019-12-10 12:19:50 -08:00
bjorn
305596adf8
Fix windows build;
...
LOVR_EXPORT needs to be on the declaration, unfortunately.
2019-08-26 15:53:10 -07:00
bjorn
8d4760167f
luax is now api;
2019-08-21 15:27:26 -07:00
bjorn
eb1e257209
Add new array implementation; Upgrade filesystem;
...
Filesystem:
- Uses streaming file IO.
- Uses less memory when requiring files.
- Simplifies its require path implementation.
2019-06-16 13:30:30 -07:00
bjorn
22fe333150
Update refcounting (again);
...
- Ref struct only stores refcount now and is more general.
- Proxy stores a hash of its type name instead of an enum.
- Variants store additional information instead of using a vtable.
- Remove the concept of superclasses from the API.
- Clean up some miscellaneous includes.
2019-06-02 01:02:26 -07:00
bjorn
4a47afca38
Organize api folder;
2019-05-19 00:31:42 -07:00