Miku AuahDark
dda24bb98a
Fix typo
...
--HG--
branch : androidmic
2019-09-29 15:54:27 +08:00
Miku AuahDark
0d9081ff22
Export love._requestRecordingPermission
...
--HG--
branch : androidmic
2019-09-29 12:09:39 +08:00
Miku AuahDark
0f23b0e4a0
Initial working on mic recording support for Android.
...
--HG--
branch : androidmic
2019-09-29 11:47:13 +08:00
Alex Szpakowski
ed537c4f6a
lines can render more than 65k vertices (resolves issue #1356 ).
2019-09-28 18:34:56 -03:00
Alex Szpakowski
157282ec7e
Fix a typo causing mesh attribute instancing to behave weirdly.
2019-09-28 00:31:44 -03:00
Alex Szpakowski
83e74e5e6c
Fix setRandomSeed and setRandomState not fully invalidating the state used by randomNormal (resolves issue #1516 ).
2019-09-26 19:38:36 -03:00
Alex Szpakowski
4f093a0b6b
Support loading BGRA8 dds files into RGBA8 images.
2019-09-22 12:47:49 -03:00
Alex Szpakowski
a5ccfe4394
More clamping and rounding instead of truncating in ImageData:paste format conversion code, to match the behaviour of other color conversion code.
2019-09-21 22:20:16 -03:00
Alex Szpakowski
42a8107b07
Fix a compile error
2019-09-21 22:13:36 -03:00
Alex Szpakowski
2bf5a04937
Use a generic slow path for ImageData:paste between formats when we don't already have a faster path for it, instead of erroring.
2019-09-21 22:13:10 -03:00
Alex Szpakowski
e11d43507e
Reorganize ImageData:set/mapPixel code so less of it is in the Lua wrapper and more of it is in the ImageData class itself.
2019-09-21 21:48:03 -03:00
Alex Szpakowski
c4fac73dc4
ImageData and Images now support the rg11b10f format.
2019-09-21 14:46:45 -03:00
Alex Szpakowski
b5da34ffb1
very minor code style change for consistency
2019-09-21 11:08:55 -03:00
Alex Szpakowski
94c66918a8
Add support for rgba4, rgb5a1, rgb565, and rgb10a2 ImageData formats. Also fix normalized 8 and 16 bit per component ImageData to round instead of floor (post-converted fixed point) fractional values in setPixel and mapPixel.
2019-09-21 11:02:40 -03:00
Alex Szpakowski
f03b391245
Canvas:newImageData creates an ImageData with a pixel format that matches the canvas'.
2019-09-20 19:25:15 -03:00
Alex Szpakowski
0d2de019c3
Fix ImageData:getPixel and ImageData:mapPixel when 1- and 2-component formats are used and the JIT compiler isn't available.
2019-09-18 20:23:32 -03:00
Alex Szpakowski
58e26280c2
Fix detection for support of r16 and rg16 image formats on desktops.
2019-09-18 19:36:08 -03:00
Alex Szpakowski
d6e37ec4aa
Add support for loading DDS files that contain raw/uncompressed pixel data. Resolves issue #1097 .
2019-09-17 22:40:11 -03:00
Alex Szpakowski
a6f8e7dac6
Improve detection of sRGB texture formats in dds files (doesn't currently affect any exposed API).
2019-09-15 19:08:25 -03:00
Alex Szpakowski
33bc8aabfc
Add Joystick:getGamepadMappingString and love.joystick.getGamepadMappingString(guid). Resolves issue #1371 .
2019-09-15 14:02:19 -03:00
Alex Szpakowski
9ab2a94037
Rename internal C++ Color struct to Color32 to help differentiate it from Colorf.
2019-09-14 23:13:40 -03:00
Alex Szpakowski
89eb3c6236
Remove a static_assert that fails in some compilers
2019-08-25 17:16:58 -03:00
Alex Szpakowski
55d4dc0f9e
Restructure some internal vertex buffer binding code to be closer to how graphics APIs actually behave.
2019-08-25 16:50:15 -03:00
Bart van Strien
932068e777
Stop the attached Source when a Video gets destroyed
...
Before it would end up paused, but this means the audio playback thread will
still keep it alive. Since there are no other references, there is no way to
then free that Source anymore.
2019-08-11 15:34:00 +02:00
Bart van Strien
cb625d890a
Make sure luax_getfile always returns a retained value
...
Before it would return a retained value if it returned a freshly constructed file, and an unretained value otherwise.
Also update all (3) call sites, to correctly retain or release as needed.
2019-08-11 11:13:22 +02:00
Alex Szpakowski
639bdb10e9
Fix love.filesystem.mount(data). Resolves issue #1506 .
2019-08-02 21:06:07 -03:00
Alex Szpakowski
528c1e2390
love.filesystem's loaders in the package.loaders table error instead of crashing when no argument is given to them (resolves issue #1504 ).
2019-08-02 21:04:22 -03:00
Alex Szpakowski
459d31db7e
Fix the Data-returning variant of love.filesystem.read/File:read to return the size that was read. Now it's consistent with the string-returning variant.
2019-07-31 19:24:17 -03:00
Alex Szpakowski
32f381576e
Avoid using lightuserdata in internal wrapper code for the math module.
2019-07-20 10:51:59 -03:00
Alex Szpakowski
cb4b45dcf1
Add Data:getFFIPointer. Similar to Data:getPointer but returns a cdata pointer directly (or nil if the FFI isn't available).
...
It should be preferred instead of Data:getPointer because the latter uses lightuserdata which can't store more all possible memory addresses on some new arm64 architectures, when LuaJIT is used.
2019-07-20 10:47:58 -03:00
Alex Szpakowski
93fef5f144
Remove some dead code.
2019-07-17 18:57:14 -03:00
Alex Szpakowski
5c01289300
Fix love.graphics.getTextureTypes to return a table with boolean values instead of number values.
2019-07-13 21:58:01 -03:00
Alex Szpakowski
aca979c3ea
Add Joystick:getDeviceInfo(). Returns USB vendor id, product id, and product version numbers (consistent across operating systems).
...
Can be used to show different icons, etc. for different gamepads.
2019-06-29 21:01:17 -03:00
Alex Szpakowski
3c9662a9ce
Fix a typo in the line smoothing code. I don't think it causes any visual change.
2019-06-28 12:40:41 -03:00
Alex Szpakowski
e66ecd03a8
Minor code cleanup of FLAC decoder.
2019-06-25 20:19:27 -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
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