Commit Graph

2909 Commits

Author SHA1 Message Date
Alex Szpakowski d4762b4612 Add love.window.getDisplayOrientation and a love.displayrotated callback. Resolves issue #1441.
Note that this tracks screen orientation, rather than device orientation.
2018-12-17 16:19:56 -04:00
Alex Szpakowski 43ee232897 macOS: Use a (non-persistent) map/sync approach for stream buffers, instead of glBufferSubData. This usually won't affect performance either way, but avoids some worst-case performance cliffs on my Intel GPU in my testing. 2018-12-16 15:15:32 -04:00
Alex Szpakowski dc5e43adf3 Split wrap_Graphics.lua into two files to work around VS2013's 16kB limit for raw string literals. 2018-12-13 22:34:30 -04:00
Alex Szpakowski 1896f82f5d GL3/GLES3: Work around some drivers (e.g. Intel on Windows) making pixel shaders unnecessarily expensive when MRT is not used, because love declares ~8 pixel shader outputs even when only the first is used by shader code. 2018-12-13 20:52:45 -04:00
Alex Szpakowski bcc5e77632 Simplify OpenGL 3+ stream buffer syncing code used with automatic batching. 2018-12-12 17:51:03 -04:00
Alex Szpakowski 9cdb4300de Merged in PabloMayobre/love/PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471 (pull request #114)
Fix Source:setEffect and Source:getEffect.
2018-12-12 18:20:42 +00:00
Alex Szpakowski c8d2d76df7 Work around a compiler bug in old versions of VS2013 (resolves issue #1458). 2018-12-12 11:26:14 -04:00
Alex Szpakowski 2e190f4fa0 Merged in PabloMayobre/love-1/PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077 (pull request #117)
Fixed hash functions in data module

Approved-by: Bart van Strien <bart.bes+projects@gmail.com>
Approved-by: Tae Hanazono <auahdark687291@gmail.com>
2018-12-06 21:50:18 +00:00
Bart van Strien 7253118100 Make and use a vector variant of luax_convobj
Which also prevents accessing the zeroeth element of an empty vector
2018-12-03 18:19:28 +01:00
Pablo Mayobre 1670edf4ba Fix Source:setEffect working incorrectly when a fourth or more arguments are passed
--HG--
branch : PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471
2018-11-30 04:01:52 +00:00
Pablo Mayobre ed68ac6b28 Fix hash functions. The length appended at the end was the modified length (taking into consideration the appended bit) instead of the original length as it should be.
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-30 03:54:58 +00:00
Michael Vetter a1d6da4624 Silence compiler warning
Silence compiler warnings about methods with return value and potentially not returning anything.
This happens with gcc8 and the `-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -std=c++11` flags passed to it by default on openSUSE.
2018-11-29 17:07:20 +01:00
Pablo Mayobre 43633d7b44 Fix typo: paddedlength -> paddedLength
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-25 19:03:30 +00:00
Pablo Mayobre 7c1603537f Fixed hash functions in data module, not taking the appended 1bit into consideration when calculating padding length. Fixes #1453
--HG--
branch : PabloMayobre/fixed-hash-functions-in-data-module-not--1543171550077
2018-11-25 18:46:33 +00:00
Alex Szpakowski 009a98a112 Merged in AuahDark/love/android-fix (pull request #116)
Tiny love.system.openURL fix
2018-11-20 03:21:14 +00:00
Alex Szpakowski 5143926b38 Copy the data size of old uniforms to the new uniform when reinitializing shader uniforms after love.window.setMode.
Fixes a crash in the Data variant of Shader:send when it's called after setMode on a shader that was created before the setMode call.
2018-11-12 15:20:09 -04:00
Tae Hanazono 4c13278784 Modify openURL to return boolean from Java side
--HG--
branch : android-fix
2018-11-03 15:19:55 +08:00
Alex Szpakowski da23448efe Update version to 11.2 2018-10-28 13:52:09 -03:00
Pablo Mayobre b53f3de4a7 Add Source:setAirAbsorption() and Source:getAirAbsorption() 2018-10-23 03:22:33 +00:00
Pablo Mayobre e840631388 Fix :setEffect("effect", true) and :getEffect("effect") when no filter is associated to the effect.
Fixes #1449

--HG--
branch : PabloMayobre/fix-seteffecteffect-true-and-geteffectef-1540253791471
2018-10-23 00:17:19 +00:00
Joel Schumacher 9a9ac96c4b Fix Windows version of __PHYSFS_platformCalcUserDir after Update 1809 2018-10-03 20:02:59 +02:00
Joel Schumacher 0499f03891 Remove extern declaration of std::vector<std::string>::emplace_back to fix compliation with MSVC 2018-10-03 20:02:10 +02:00
Alex Szpakowski e1ec98ad64 Add an ARM NEON simd implementation of matrix multiplication. 2018-09-29 14:52:11 -03:00
Alex Szpakowski 535be96f03 Optimize StreamBuffer::getUsableSize to not be a virtual method. 2018-09-29 14:50:49 -03:00
Alex Szpakowski 0cf106fa6a Keep a reference to the SDL video subsystem in the mouse module, since cursors need it. Potentially resolves issue #1388. 2018-09-28 20:51:41 -03:00
Josh Grams cca5af66e8 setCanvas: rephrase confusing error message. 2018-09-21 08:32:27 -04:00
Alex Szpakowski 79679f6272 Fix an uninitialized variable causing (harmless) OpenGL errors. Resolves issue #1434. 2018-08-14 18:10:15 -03:00
Alex Szpakowski b38c61b7ce Merged in daviel/love/bodygettransform (pull request #107)
Added body:getTransform method
2018-06-09 13:36:56 +00:00
David K b8c9bc38a1 Renamed arguments in setTransform method. Merge setters in to one lamba
--HG--
branch : bodygettransform
2018-05-26 09:54:09 +02:00
David K 0d1b2bc68a Added body:setTransform method
--HG--
branch : bodygettransform
2018-05-24 20:25:55 +02:00
David K 29b7dcf21b Added body:getTransform method
--HG--
branch : bodygettransform
2018-04-29 21:05:03 +02:00
Alex Szpakowski 4546a38751 Update changelog and version 2018-04-08 11:31:10 -03:00
Alex Szpakowski 866df108ab Windows: attempt to make love._openConsole smarter about dealing with already being attached to a console. See issue #1394. 2018-04-07 18:59:12 -03:00
Alex Szpakowski b934f74795 Fix Fixture:getShape() causing crashes with ChainShapes (resolves issue #1392), removed dead code that's no longer valid 2018-04-07 18:37:29 -03:00
Alex Szpakowski bb228cab0c Fix love.event.quit causing crashes and other bad behaviour if a Canvas is active. Resolves issue #1395. 2018-04-07 12:43:00 -03:00
Alex Szpakowski 7b91ab915c Potentially fix depth/stencil support on older phones. 2018-04-07 11:35:20 -03:00
Bart van Strien 571503c02e Don't use deprecated isFile in love.joystick.loadGamepadMappings (fixes #1391) 2018-04-04 17:49:51 +02:00
Alex Szpakowski 93372b87a8 Fix love.graphics.clear(colortable) when no Canvas is active. 2018-04-03 20:12:41 -03:00
Alex Szpakowski 613de97b58 Fix Source:queue to show the correct argument in the error message when an invalid data parameter is passed in. 2018-04-02 16:34:48 -03:00
Alex Szpakowski cfa30167ca Fix hash map collisions when setting canvases. 2018-04-02 15:58:38 -03:00
Alex Szpakowski 388c93b049 nogame screen: escape key quits love. 2018-04-01 15:05:39 -03:00
Alex Szpakowski 3fe9e51a46 nogame screen: bring back double-tap-to-exit on touch screens. 2018-04-01 13:01:02 -03:00
Martin Felis 1462f4cf56 (Android) Removed declaration of log2 as it is available in newer NDK APIs 2018-03-31 22:46:12 +02:00
Bart van Strien da9716b96d Update version number and changelog 2018-03-31 12:27:02 +02:00
Alex Szpakowski 0cefb12c13 Add a variant of love.filesystem.getInfo which filters based on file type. getInfo(filename, "directory") will only return info for non-symlinked directories, for example. 2018-03-24 14:43:56 -03:00
Alex Szpakowski 277816fc86 Update codename 2018-03-11 19:11:33 -03:00
Alex Szpakowski 3949fde802 Fix querying the default audio recording device, some Source code style cleanups. 2018-03-11 18:47:44 -03:00
Alex Szpakowski 3a2ffc5e07 Add support for header-less DEFLATE data to love.data.compress/decompress. 2018-02-24 22:28:58 -04:00
Bart van Strien f32237a524 Prevent error in File:lines if the last line does not end with a newline (resolves #1383) 2018-02-17 14:55:39 +01:00
Alex Szpakowski 8e83834722 Use the joystick's name in new gamepad mappings, when possible. Resolves issue #1370. 2018-02-16 18:20:35 -04:00