Sasha Szpakowski
b4e9731dfb
Add LOVE_EXPORT to a couple macOS functions called from the exe.
2022-12-29 10:27:52 -04:00
Miku AuahDark
c342339fee
Define LOVE_EXPORT on non-Windows.
...
With GCC or Clang, LOVE_EXPORT is defined as __attribute__((visibility("default"))).
2022-12-28 13:51:08 +08:00
Alex Szpakowski
8e7fd10b6f
Update copyright year for 2022
2021-12-31 18:33:40 -04:00
Alex Szpakowski
cee8f8ae48
Fix a compiler warning
2021-12-24 11:26:11 -04:00
Miku AuahDark
380cc1033e
Change luax_runwrapper chunk name prefix.
2021-12-12 09:34:08 +08:00
Miku AuahDark
0f9e598ebb
Fixed love.filesystem.getDirectoryItems() in Android with new fusing mehod.
2021-11-13 14:34:54 +08:00
Miku AuahDark
3a18a2ab0d
Use GameActivity.buildFileLookup via JNI to build file tree.
...
Turns out AAssetDir_getNextFilename() intentionally excludes directories,
thus the custom archive backend only sees the top-level files.
2021-11-05 13:55:14 +08:00
Miku AuahDark
b79b99bbaa
Use specialized logic when loading C modules in Android.
2021-11-02 17:54:13 +08:00
Alex Szpakowski
f89aabb0bb
Update copyright year for 2021
2021-04-04 16:14:45 -03:00
Miku AuahDark
cbc0602620
Make sure to delete activity returned by SDL when calling getAssetManager()
2021-02-13 19:03:23 +08:00
Miku AuahDark
e967348409
Implement AAsset virtual archive for Android
2021-02-06 22:04:33 +08:00
Miku AuahDark
4f491c2e61
Allow full 64-bit lightuserdata usage if the LuaJIT supports it.
...
Issue love2d/love-android#200
Original patch was sent by slime in Discord. Modified a bit to add
code that checks for 64-bit lightuserdata support.
2021-01-07 11:49:11 +08:00
Alex Szpakowski
90bd8f1811
Update version
2020-12-24 12:45:08 -04:00
Miku AuahDark
57a2a88a09
Android: Rename "openURL" Java method to "openURLFromLOVE"
...
SDL 2.0.14 adds openURL method which conflicts with LOVE one.
2020-12-24 22:15:15 +08:00
Alex Szpakowski
140c1f38c0
Minor code style tweaks
2020-12-22 19:34:23 -04:00
cigumo
74edaf8fba
adds iOS audio interruption handling and recovery
2020-12-08 23:13:52 -03:00
niki
99e1c0034d
make love lua 5.4 conform
2020-08-14 19:27:42 +02:00
Miku AuahDark
67ee1e4d76
Windows: Actually query page size.
2020-01-28 22:05:05 +08:00
Alex Szpakowski
fc4847c69d
Update copyright for the new year
2020-01-03 22:40:36 -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