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
Alex Szpakowski
4546a38751
Update changelog and version
2018-04-08 11:31:10 -03:00
Bart van Strien
da9716b96d
Update version number and changelog
2018-03-31 12:27:02 +02:00
Alex Szpakowski
277816fc86
Update codename
2018-03-11 19:11:33 -03:00
Alex Szpakowski
a361b5c330
Fix invalid base64 produced by love.data.encode when the input data has byte values greater than 252. Resolves issue #1374 .
2018-02-07 22:28:33 -04:00
Alex Szpakowski
d37c53584e
Fixed the mipmaps flag in love.graphics.newImage; cleaned up a bit of vector code in love.math.isConvex.
2018-01-28 22:32:40 -04:00
Bart van Strien
fd514d8176
Update some more copyright notices
...
I am so good at using search/replace I definitely didn't need a second commit
for this.
2018-01-03 19:55:02 +01:00
Bart van Strien
e80247c191
Happy new year! ✨
2018-01-03 19:47:35 +01:00
Alex Szpakowski
dd59803ad3
Error when invalid setting names are used in the tables passed to love.graphics.newCanvas and newImage. See issue #1312 .
2017-12-28 23:16:51 -04:00
Alex Szpakowski
7354de2059
Add (low level) functionality to allow rendering 3D Meshes.
...
- Add love.graphics.setDepthMode(testcomparison, enablewrites).
- Add love.graphics.setMeshCullMode.
- Add love.graphics.setFrontFaceWinding.
Depth testing and depth writes require a depth buffer to work. The mesh cull mode controls whether front/back faces of a mesh are culled. The front face winding determines whether a clockwise or counterclockwise-oriented face in a mesh is considered front facing.
--HG--
branch : minor
2017-12-09 23:34:08 -04:00
Nicola Orlando
a9961b7c70
Reversed alignedMalloc return value.
...
posix_memalign returns false on success; using == 0 instead of != 0 reverses it, allowing alignedMalloc to return true on success and false otherwise (mimicking what happens under Windows).
--HG--
branch : Nixola/reversed-alignedmalloc-return-value-posi-1512135128149
2017-12-01 13:32:51 +00:00
Alex Szpakowski
6dea2ab714
Clamp all color arguments to [0, 1] in cases where values outside that range don't make sense (fixed-point color values & sRGB colors). Closes issue #1315 .
...
--HG--
branch : minor
2017-11-21 19:49:52 -04:00
Alex Szpakowski
8672ff2272
Use a more efficient method of streaming automatically batched vertices on AMD Windows and Linux systems.
...
--HG--
branch : minor
2017-11-11 20:48:02 -04:00