Alex Szpakowski
07179f11ea
Add dr_flac header file to cmakelists and xcode
2019-06-25 20:13:31 -03:00
Alex Szpakowski
62d6573216
Rearrange fields in the Optional struct for less wasted padding.
2019-06-25 20:08:32 -03:00
Alex Szpakowski
9833515eba
Merged in AuahDark/love/flac-audio (pull request #125 )
...
Enable FLAC audio support.
2019-06-25 23:02:44 +00:00
Alex Szpakowski
37472d6f5e
Add 'usedpiscale' boolean (true by default) to love.window.setMode's settings table and love.conf's t.window table. Add love.window.getNativeDPIScale.
...
When usedpiscale=false, love will no longer automatically scale coordinates by the screen's DPI scale factor (so all coordinates will be in pixels), even when highdpi=true. love.window.getDPIScale will return 1, love.graphics.newCanvas will default to a dpi scale of 1 instead of the screen's dpi scale, etc.
love.window.getNativeDPIScale() will return the screen's DPI scale as reported by the OS no matter what usedpiscale is set to.
2019-06-24 21:54:09 -03:00
Alex Szpakowski
2e6644fd44
Backout changeset b0094b5a9fa7f9a8f38040ec2f3d94d0a3cf31ce
2019-06-20 18:57:42 -03:00
Miku AuahDark
65b01fc52f
Re-enable FLAC codepath using dr_flac instead of libFLAC.
...
--HG--
branch : flac-audio
2019-06-17 16:09:46 +08:00
Alex Szpakowski
fc8ede263e
Fixed BezierCurve:render to avoid adding collinear points in some situations. Resolves issue #1501 .
2019-06-16 22:48:33 -03:00
Alex Szpakowski
2a534893b1
Small ImageData code cleanup.
2019-06-04 20:33:44 -03:00
Alex Szpakowski
8455ef22d5
More consistent naming for vertex and index buffers in love's code.
2019-06-04 20:29:44 -03:00
Alex Szpakowski
44fd8b4e19
Update TinyEXR
2019-06-02 11:35:52 -03:00
Alex Szpakowski
8e5b71e8e7
Improve automatic batching performance slightly on AMD gpus by removing some redundant/useless opengl calls (there is no mapped buffer to flush).
2019-06-01 15:58:42 -03:00
Alex Szpakowski
ddef70e141
Potentially improve automatic batching performance slightly on nvidia/intel GPUs.
2019-06-01 15:06:19 -03:00
Alex Szpakowski
51d0733943
Apply workaround for font texture loading on Radeon 3000/4000-era graphics cards to mobile GPUs as well as desktop ones.
2019-05-30 20:36:19 -03:00
Alex Szpakowski
02fa8b0b2b
Fill truetype font glyph atlases with transparent white instead of transparent black in the borders between glyphs. Fixes black fringes around text (resolves issue #1495 ) and reduces the appearance of flickering when text is moved at non-integer coordinates and gamma correct rendering isn't enabled (closes issue #1143 ).
2019-05-27 19:36:22 -03:00
Alex Szpakowski
46d8b07e41
Fix non-integer dpi scale values specified in love.graphics.newCanvas.
2019-05-27 19:20:25 -03:00
Alex Szpakowski
ee77eef9a9
Update glslang
2019-05-26 15:12:02 -03:00
Alex Szpakowski
38cb56f168
Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise.
2019-05-26 14:46:52 -03:00
Alex Szpakowski
3c77edb68b
Fix modplug-decoded streaming Sources when looping repeatedly, and when stop() is called on them. Resolves issue #1493 .
2019-05-26 13:55:29 -03:00
Bart van Strien
7b7d03721c
Prevent the currently displayed video frame from changing if the video is paused
...
If you'd seek while the video was paused, you'd see the next frame of the video.
2019-05-22 20:00:30 +02:00
Bart van Strien
064296a6ce
Don't write intermediate frames to the backbuffer if catching up or seeking
...
There's no need to lock a mutex twice and copy the entire frame if we know
we'll just discard the data anyway.
2019-05-22 19:57:39 +02:00
Bart van Strien
1e8ab8ce1e
Never seek video more than once when trying to catch up (issue #1472 , issue #1438 )
...
I'm not sure if this actually helps, because I haven't been able to reproduce
the issue so far, but at least this should make it less likely the decoder
thread ends up in an infinite loop.
2019-05-22 19:50:51 +02:00
Alex Szpakowski
ae572f2ffe
Fix love.isVersionCompatible (resolves issue #1488 ).
2019-05-19 18:30:45 -03:00
Alex Szpakowski
64c1ca977b
Update stb_image from 2.16 to 2.22.
2019-05-18 00:08:11 -03:00
Alex Szpakowski
638e535061
Updated changelog
2019-05-16 20:16:40 -03:00
Alex Szpakowski
33186430af
Simplify Source playback offset tracking to only store the integer sample offset, and convert to seconds when requested.
2019-05-16 19:17:19 -03:00
Bart van Strien
c4b21b6efe
Try probing the audio type if extension matching fails ( resolves #1487 )
...
At the moment it still only tries a single decoder if it does find a matching extension. It might be a good idea to simply always probe, but try the matching decoder first, that way you could name your mp3 .ogg.
2019-05-04 11:35:41 +02:00
Bart van Strien
4662580059
Make sure the mpg123 decoder tries to read data on creation
...
So it can fail if it's not actually an mp3 file
Preparation for issue #1487
2019-05-04 11:26:16 +02:00
Bart van Strien
bf5e3820bd
Remove unused stored extension in Decoder
...
As preparation for issue #1487
2019-05-04 10:44:41 +02:00
Alex Szpakowski
372a55c6ac
ImageData supports more formats: r8, rg8, r16, rg16, r16f, rg16f, r32f, rg32f. Format conversion via ImageData:paste is not supported for those (yet).
2019-04-28 12:09:16 -03:00
Alex Szpakowski
8b51dc831d
Work around occasional pops in streaming sources on iOS, by making the streaming source update code more like what was there in 0.10.x.
2019-04-24 20:13:07 -03:00
Alex Szpakowski
8f0686c204
Code style cleanup.
2019-04-24 00:11:18 -03:00
Alex Szpakowski
9d4cb2a949
iOS: Fix Source:play+stop+play and Source:play+seek, for streaming sources. Resolves issue #1484 .
2019-04-24 00:10:22 -03:00
Alex Szpakowski
14abf2c9e8
Move source seeking from Source::playAtomic to prepareAtomic. Fixes love.audio.play(sources) for sources which had seek() called before the play call.
2019-04-23 21:30:32 -03:00
Alex Szpakowski
276bdd1dbf
iOS: fix audio clicks immediately after playing a source. Resolves issue #1485 .
2019-04-23 21:18:56 -03:00
Alex Szpakowski
84f9f3f4d5
Update Xcode project for Xcode 10.2.
2019-04-11 18:45:09 -03:00
Alex Szpakowski
e7c36022a8
Update PhysFS to 3.0.2.
2019-04-07 16:41:55 -03:00
Alex Szpakowski
69c47675b9
Add Decoder:clone. Resolves issue #1479 .
2019-04-07 15:47:00 -03:00
Alex Szpakowski
db1c982f76
boot.lua and nogame.lua line numbers match the source code once they're embedded into love (thanks, pgimeno!)
2019-04-06 13:08:25 -03:00
Alex Szpakowski
09cd3b68c9
Explicitly disable color FBO attachments where possible for depth/stencil canvases. Potentially fixes issue #1470
2019-04-02 21:13:01 -03:00
Alex Szpakowski
0c2153e0ca
Fix a potentially uninitialized value in love.graphics code. Minor cleanup.
2019-04-02 20:20:18 -03:00
Alex Szpakowski
b439ff07ce
Allow love.timer.sleep(0).
2019-04-02 20:12:09 -03:00
Bart van Strien
9d2640364b
Convert the readme back to utf-8
2019-03-09 15:27:54 +01:00
Bart van Strien
00e7d640c7
Also test source pitch is positive and clarify error ( resolves #1474 )
...
According to the OpenAL 1.1 specification AL_PITCH, values must be in the range (0.0f, any]. Though I guess any does not include infinity.
2019-03-09 15:24:02 +01:00
Bart van Strien
5b2b328624
Merged in Lin-Buo-Ren/love/Lin-Buo-Ren/fix-heading-markup-in-readme-1551583956825 (pull request #122 )
...
Fix heading markup in README
2019-03-09 14:15:11 +00:00
林博仁
e3d73d9351
Fix heading markup in README
...
--HG--
branch : Lin-Buo-Ren/fix-heading-markup-in-readme-1551583956825
2019-03-03 03:33:24 +00:00
Bart van Strien
3d64ad0a3e
Properly propagate errors when creating a DataView ( fixes #1476 )
...
The C++ code already threw an exception when creating a DataView with size 0, but the corresponding lua wrapper ignored it. Now it's correctly turned into a lua error.
2019-03-02 13:47:49 +01:00
Alex Szpakowski
4fd2009e25
Merged in AuahDark/love/android-safearea (pull request #121 )
...
Implement `love.window.getSafeArea` for Android (C++ changes)
2019-02-09 23:24:42 +00:00
Miku AuahDark
b3497f42e4
Add failsafe for love.window.getSafeArea in Android.
...
In case it uses older Java files, the function can safely be called without
causing Java crash.
--HG--
branch : android-safearea
2019-02-09 18:55:48 +08:00
Miku AuahDark
4a08c0f7c1
Implement love.window.getSafeArea for Android
...
--HG--
branch : android-safearea
2019-02-08 23:58:02 +08:00
Alex Szpakowski
76917685dd
Add an optional vertex count parameter to mesh:setVertices.
2019-01-19 12:12:29 -04:00