Alex Szpakowski
69c47675b9
Add Decoder:clone. Resolves issue #1479 .
2019-04-07 15:47:00 -03:00
Alex Szpakowski
db1c982f76
boot.lua and nogame.lua line numbers match the source code once they're embedded into love (thanks, pgimeno!)
2019-04-06 13:08:25 -03:00
Alex Szpakowski
09cd3b68c9
Explicitly disable color FBO attachments where possible for depth/stencil canvases. Potentially fixes issue #1470
2019-04-02 21:13:01 -03:00
Alex Szpakowski
0c2153e0ca
Fix a potentially uninitialized value in love.graphics code. Minor cleanup.
2019-04-02 20:20:18 -03:00
Alex Szpakowski
b439ff07ce
Allow love.timer.sleep(0).
2019-04-02 20:12:09 -03:00
Bart van Strien
00e7d640c7
Also test source pitch is positive and clarify error ( resolves #1474 )
...
According to the OpenAL 1.1 specification AL_PITCH, values must be in the range (0.0f, any]. Though I guess any does not include infinity.
2019-03-09 15:24:02 +01:00
Bart van Strien
3d64ad0a3e
Properly propagate errors when creating a DataView ( fixes #1476 )
...
The C++ code already threw an exception when creating a DataView with size 0, but the corresponding lua wrapper ignored it. Now it's correctly turned into a lua error.
2019-03-02 13:47:49 +01: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
76917685dd
Add an optional vertex count parameter to mesh:setVertices.
2019-01-19 12:12:29 -04:00
Alex Szpakowski
74dcc41b38
Cleaned up love.graphics Image code for determining whether the image's pixel format is supported.
2019-01-16 19:30:21 -04:00
Alex Szpakowski
1bb50fccac
Reduce peak memory usage when a font's glyph atlas needs to be recreated.
2019-01-16 18:21:58 -04:00
Alex Szpakowski
d83117c981
Improve precision of the gammaToLinearPrecise shader function.
2019-01-15 17:29:13 -04:00
Alex Szpakowski
91d425e7e1
Fix World:getJoints to return fully resolved types for joints.
2019-01-05 10:17:11 -04: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
19890a65c3
Move named channel code to the thread module instead of having a static map. Fixes issue #1464 .
2018-12-31 22:36:36 -04:00
Alex Szpakowski
364718fa46
Android: potentially work around a Qualcomm Adreno driver bug which prevented videos from being loaded into vram.
2018-12-31 21:02:02 -04:00
Alex Szpakowski
3af66da51e
Automatic batching: improve the consistency of performance and draw calls for the vertex buffer upload approach taken on older Windows and Linux GPUs which are only capable of GL3.
2018-12-27 23:52:54 -04:00
Alex Szpakowski
97883ae627
Update version to 11.3
2018-12-27 21:48:42 -04:00
Alex Szpakowski
752c5b70f1
Fix font vertex generation skipping the first glyph in the string if it restarts its loop due to its texture atlas being recreated to make room for more glyphs. Resolves issue #1452 .
2018-12-27 21:16:45 -04:00
Alex Szpakowski
a91a0a9431
update glslang
2018-12-26 14:47:34 -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
f504ace6cd
Make sure love.window.getSafeArea is in DPI-scaled units on all platforms.
2018-12-26 10:36:41 -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
1c853cbcc3
Fall back to glTexImage instead of glTexStorage on Radeon 3xxx drivers on Windows. Potentially works around a graphics driver bug which prevented text from showing up.
2018-12-25 18:33:26 -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
Alex Szpakowski
fc17ecba0d
Expose C++ love.event Message name and args fields so other code can access them.
2018-12-21 14:12:44 -04:00
Bart van Strien
b2ed16cd7b
Error when trying to create a queueable source with newSource (issue #1450 )
2018-12-19 11:04:36 +01:00
Alex Szpakowski
e2aa469170
Add love.window.get/setVSync, to allow changing the vsync setting without recreating the window.
2018-12-18 13:39:06 -04:00
Alex Szpakowski
6302602a45
Add love.math.colorToBytes and colorFromBytes, simple functions to convert between 0-1 and 0-255 (byte) colors.
2018-12-18 00:07:39 -04:00
Alex Szpakowski
5d5c2f9a96
math and data module instances are now deleted when they have no more Lua references (matches the behaviour of other modules.) Fixes the deprecation system not fully restarting when love.event.quit("restart") is called.
...
Resolves issue #1462 .
2018-12-17 16:44:13 -04:00
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