Commit Graph

430 Commits

Author SHA1 Message Date
Alex Szpakowski 85ca9f51d3 Merge pull request #1645 from MikuAuahDark/windows-arm-rework
LÖVE on Windows 10 ARM patches (step 2)
2020-12-22 20:04:16 -04:00
Alex Szpakowski b7400892a4 Merge branch 'master' into 12.0-development 2020-12-22 19:35:06 -04:00
Alex Szpakowski 140c1f38c0 Minor code style tweaks 2020-12-22 19:34:23 -04:00
Alex Szpakowski 1f9d98263d Refactor Buffer internals.
Allows buffers created with love.graphics.newBuffer to only allocate VRAM data. Previously they had a copy of their contents in RAM.
Also makes it easier to implement Buffers in other graphics APIs and to implement more types of Buffers in the future.
2020-12-22 19:23:02 -04:00
cigumo 74edaf8fba adds iOS audio interruption handling and recovery 2020-12-08 23:13:52 -03:00
Miku AuahDark 6301b690af Ensure LOVE_SIMD_NEON is defined when compiling for Windows ARM64 2020-12-03 13:53:41 +08:00
Alex Szpakowski 26326a01e0 Merge branch 'master' into 12.0-development 2020-09-21 22:35:19 -03:00
niki 99e1c0034d make love lua 5.4 conform 2020-08-14 19:27:42 +02:00
Alex Szpakowski e60736f5a6 Add Mesh:set/getIndexBuffer. 2020-07-20 22:10:08 -03:00
Alex Szpakowski 7fbb68e90e Merge branch '12.0-development' into GraphicsBuffer 2020-02-28 23:10:21 -04:00
Alex Szpakowski e188740c18 Fix a link error on Windows 2020-02-28 22:17:20 -04:00
Alex Szpakowski e71f27c65d Move Lua wrapper code for Variants out of the Variant class file. 2020-02-28 21:54:03 -04:00
Alex Szpakowski b1c028a4d3 Merge branch '12.0' into GraphicsBuffer 2020-02-17 16:31:02 -04:00
Alex Szpakowski 7b195c5f44 Remove more references to mpg123 2020-02-16 19:15:25 -04:00
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 7a997fb21f Merge branch '12.0' into GraphicsBuffer 2020-02-01 17:34:32 -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 d597275207 Add StringMap for DataFormat 2020-01-15 23:26:24 -04: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