Commit Graph

414 Commits

Author SHA1 Message Date
Alex Szpakowski 5c06b2a860 Replace getCanvas/ImageFormats with getTextureFormats 2020-02-12 22:25:04 -04:00
Alex Szpakowski 12c90b3dca Merge Image and Canvas GL backend classes into new common Texture class. 2020-02-07 20:29:21 -04:00
Alex Szpakowski b46b3ed552 Move some Canvas code to Texture, devirtualize Texture::draw. 2020-02-03 19:02:58 -04:00
Alex Szpakowski 7684920f19 Merge branch 'master' into 12.0 2020-01-30 20:03:24 -04:00
Miku AuahDark 67ee1e4d76 Windows: Actually query page size. 2020-01-28 22:05:05 +08:00
Alex Szpakowski 9ebb6a5c44 Add internal module type enum value for use with out-of-tree third party modules.
https://bitbucket.org/rude/love/pull-requests/79/add-pluggable-modules-to-the-build-system/
2020-01-14 23:01:21 -04:00
Alex Szpakowski 23bc1a7aae Add new mesh data formats: int32, uint32, [u]int8, [u]int16, snorm8, and snorm16.
Integer formats for vertex attributes are only supported in glsl3 shaders. They use ivec/uvec types in glsl.

--HG--
branch : minor
2020-01-11 22:24:38 -04:00
Alex Szpakowski 3161eea919 Fix compilation on Windows.
--HG--
branch : minor
2020-01-04 18:40:44 -04:00
Alex Szpakowski 5f9b5a21d0 Merge default into minor
--HG--
branch : minor
2020-01-03 22:45:36 -04:00
Alex Szpakowski fc4847c69d Update copyright for the new year 2020-01-03 22:40:36 -04:00
Alex Szpakowski b001b2e1d5 Add love.event.restart(optionalvalue) as a shorthand for love.event.quit("restart", optionalvalue). If a Lua value is provided as an argument, a new love.restart field will contain the value after restarting.
--HG--
branch : minor
2019-12-28 22:43:39 -05:00
Alex Szpakowski 443250ffd5 Slightly improve performance of Channel:push(table).
--HG--
branch : minor
2019-12-28 14:06:11 -05:00
Alex Szpakowski efa2bd7837 Consolidate some internal graphics state definitions into a new renderstate file.
--HG--
branch : minor
2019-12-26 23:07:51 -05:00
Alex Szpakowski f3b52f66fe Update the internal naming convention for pixel formats.
--HG--
branch : minor
2019-12-23 23:38:04 -04:00
Alex Szpakowski 157d7637ed Update version to 12.0
--HG--
branch : minor
2019-12-23 17:17:51 -04:00
Alex Szpakowski bc12312f0f macOS: rename most internal uses of "macosx" to "macos".
--HG--
branch : minor
2019-12-22 17:54:20 -04:00
Alex Szpakowski a27781aa6a macOS/iOS: Use more modern APIs for determining the save directory.
--HG--
branch : minor
2019-12-22 17:42:23 -04:00
Alex Szpakowski fe2c204a2c Use Data:getFFIPointer instead of Data:getPointer for internal ImageData and SoundData FFI code. 2019-10-27 19:07:58 -03:00
Alex Szpakowski 5789a0b1b1 Merged in AuahDark/love/androidmic (pull request #126)
Recording support for Android (C++ side)
2019-09-29 12:30:13 +00:00
Miku AuahDark dda24bb98a Fix typo
--HG--
branch : androidmic
2019-09-29 15:54:27 +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 594b45cfb5 Clean up internal vector code. Add an (internal) vector4 struct. 2019-09-28 19:31:02 -03:00
Alex Szpakowski 2eefa859e3 Attempt to fix VS2013 compatibility. 2019-09-25 15:52:12 -03:00
Alex Szpakowski 93802a3247 Use doubles instead of lightuserdata for keys into love's internal object registry (issue #1515). 2019-09-25 15:30:22 -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 cd6471304d add comments to packed pixel format enums to clarify bit order 2019-09-19 20:48:17 -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 56e3af1744 Slightly improve performance of Channel:push(table). 2019-07-20 11:25:52 -03:00
Alex Szpakowski b43074efa5 Add an easier std::string Variant constructor. 2019-07-20 10:59:12 -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 3938da9cc6 Fix compiler warnings about Optional field initialization order 2019-06-28 12:39:15 -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 46d8b07e41 Fix non-integer dpi scale values specified in love.graphics.newCanvas. 2019-05-27 19:20:25 -03: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 3ad16a70da love.physics: move internal box2d->love object map to World instances, and clean up some physics object code. Resolves issue #1465. 2019-01-04 21:36:05 -04:00
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04:00
Alex Szpakowski a7d0c02058 Remove some unused love.physics Body methods, and clean up a bit of code. 2019-01-03 20:36:47 -04:00
Alex Szpakowski 97883ae627 Update version to 11.3 2018-12-27 21:48:42 -04:00
Alex Szpakowski 324a290040 The code related to t.audio.mixwithsystem=true is run before the audio module is loaded. Fixes issue #1430. 2018-12-26 11:36:23 -04:00
Alex Szpakowski d41aca836e Add love.window.getSafeArea (resolves issue #1437). Returns a rectangle (x, y, w, h) inside the window which is known to be unobstructed by a system title bar, the iPhone X notch, etc. Useful for making sure UI elements can be seen by the user.
Currently it only has a proper implementation on iOS and will return the window's full size otherwise.
2018-12-26 00:34:14 -04:00
Alex Szpakowski ebe98a91ec Expose C++ variant data union so other C++ code can access it. 2018-12-21 14:25:43 -04: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
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
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
Bart van Strien cac369ee44 Export luax_resume for windows 2018-05-11 17:35:24 +02:00
Bart van Strien fb793944e4 Restore lua 5.2/5.3 compatibility (fixes #1408) 2018-05-03 20:04:16 +02:00