Commit Graph

3813 Commits

Author SHA1 Message Date
Miku AuahDark e8ddcdceb2 Fix copy on bit depth mismatch 2020-09-22 13:50:49 +08:00
Miku AuahDark 87e1955bcf Fix compare logic. 2020-09-22 13:09:33 +08:00
Miku AuahDark 04b20624b2 Add SoundData:slice
SoundData:slice(start, length = -1)

When length = -1, it will slice until the end.
2020-09-22 13:09:03 +08:00
Miku AuahDark e71441d68b Add SoundData:copyFrom
SoundData:copyFrom(src, srcStart, count, dstStart = 0)
2020-09-22 12:06:26 +08:00
Alex Szpakowski 26326a01e0 Merge branch 'master' into 12.0-development 2020-09-21 22:35:19 -03:00
Alex Szpakowski 6be79bdd89 Fix build errors when Xcode 12 is used. 2020-09-21 22:14:41 -03:00
Alex Szpakowski 0fa0d39a5d Merge pull request #1622 from thegrb93/add-getsetstate
Add Body.getKinematicState and Body.setKinematicState
2020-09-21 16:38:57 -03:00
Garrett Brown bd6d50e2a9 Rename to get/setKinematicState 2020-09-20 21:54:02 -04:00
thegrb93 e4c7a4e777 Add getState and setState 2020-09-16 21:39:55 -04:00
Alex Szpakowski 9f62bafea2 Merge pull request #1607 from Cartread/patch-1
Update boot.lua
2020-08-16 11:34:19 -03:00
Cartread da644085e4 Update boot.lua.h 2020-08-15 22:57:30 -04:00
Alex Szpakowski b86151081d Merge pull request #1609 from nikeinikei/master
make love lua 5.4 conform
2020-08-14 21:21:39 -03:00
niki c3e6659fcb remove pushliteral version in luaopen_luautf8 2020-08-15 01:28:49 +02:00
niki 99e1c0034d make love lua 5.4 conform 2020-08-14 19:27:42 +02:00
Cartread e1d491b7c5 Update boot.lua
Removing the alpha variable allows anyone who overwrote the setColor function to see errorhandler's print.
e.g. I'm overwriting the setColor function to accommodate 0-255 values and the error message is being printed with 1/255 alpha (invisible).
Removing the 1 will print the message in black.

P.S. I'm currently overwriting errorhandler for this, but I assume others are also overwriting setColor and see no error messages.
2020-08-13 00:26:17 -04:00
Alex Szpakowski 365387150e Merge branch 'master' into 12.0-development 2020-08-09 12:25:07 -03:00
Alex Szpakowski 5f4d2f3323 Fix love.graphics.newVolumeImage when explicit mipmaps are given
Fixes issue #1602
2020-08-09 12:12:28 -03:00
Alex Szpakowski aa219c0d7a Simplify some boilerplate internal code 2020-08-02 16:00:08 -03:00
Alex Szpakowski f168333938 Simplify Buffer APIs.
Remove Buffer:set/getElement, Buffer:isCPUReadable, and the cpureadable flag in newBuffer's settings parameter.
2020-08-01 21:51:37 -03:00
Alex Szpakowski b011487a3e Add new texel buffer type.
GLSL 3+ shaders can read from texel buffers by declaring a uniform samplerBuffer variable and calling texelFetch with a 0-based index, in the shader code. All attributes in a texel buffer's format array must have the same data format (e.g. all 'floatvec4' formats).

Shader:send accepts a texel Buffer for samplerBuffer uniforms.

Added 'texelbuffer' to love.graphics.getSupported (requires GLSL 3+ and desktop OpenGL).
Added 'texelbuffersize' to love.graphics.getSystemLimits. Returns the max number of values in a texel buffer (array length multiplied by the number of attributes declared in the buffer's format array).
2020-07-28 20:44:36 -03:00
Alex Szpakowski 3c65d5ae41 love.graphics.newIndexBuffer uses 0-based index values.
It can't be consistent with other buffer types or Buffer methods if it's 1-based.
2020-07-27 17:35:16 -03:00
Alex Szpakowski de370beb68 Remove deprecation notices from newImage for now 2020-07-26 16:59:09 -03:00
Alex Szpakowski 6045b0f483 Merge branch 'GraphicsBuffer' into 12.0-development 2020-07-26 16:49:59 -03:00
Alex Szpakowski 2d7267a428 Add Buffer:isBufferType and Buffer:isCPUReadable. 2020-07-26 16:43:40 -03:00
Alex Szpakowski 36b0394afc Add love.graphics.newVertexBuffer and love.graphics.newBuffer. 2020-07-26 16:32:18 -03:00
Alex Szpakowski d75f5df80d Add Buffer methods
flush, setArrayData, setElement, getElement, getElementCount, getElementStride, getSize, getFormat
2020-07-25 19:48:54 -03:00
Alex Szpakowski 1d087cc5c2 Fix Mesh/Buffer:flush uploading more data than it needs to, sometimes. 2020-07-21 21:56:47 -03:00
Alex Szpakowski 7ad5e5a21a Fix newMesh(format, ...). Fix Mesh:attachAttribute.
Deprecate the mesh argument variant of attachAttribute in favor of the buffer argument variant.
2020-07-21 21:46:45 -03:00
Alex Szpakowski c2be89f130 Fix crashes when creating a Buffer. 2020-07-21 20:50:49 -03:00
Alex Szpakowski 77834d8e6c Add a Data object variant of love.graphics.newIndexBuffer 2020-07-21 19:09:13 -03:00
Alex Szpakowski 3b67db4672 Add love.graphics.newIndexBuffer 2020-07-21 18:57:50 -03:00
Alex Szpakowski 834cddc34c Add Mesh:getVertexBuffer. 2020-07-20 22:13:30 -03:00
Alex Szpakowski e60736f5a6 Add Mesh:set/getIndexBuffer. 2020-07-20 22:10:08 -03:00
Alex Szpakowski 3f4161dd5d Merge branch '12.0-development' into GraphicsBuffer 2020-07-20 18:13:27 -03:00
Alex Szpakowski 0c7793e195 Fix detection of #pragma language glsl3 in shaders 2020-07-19 15:41:04 -03:00
Alex Szpakowski f848b201ae Merge branch 'master' into 12.0-development 2020-07-18 21:29:36 -03:00
Alex Szpakowski dde3db3006 Apply Image:replacePixels/missing text workaround to more ATI drivers
issue #1563
2020-07-12 18:25:55 -03:00
Alex Szpakowski d60d8867f4 Possible workaround for an Intel driver bug with readable depth buffers
https://github.com/love2d/love/issues/1592
2020-07-11 17:21:26 -03:00
Alex Szpakowski 50eeed7bb1 Fix Shader:send's Data variant when a matrix layout arg is used.
Also add a second more consistent Data+matrix layout variant of Shader:send which matches the argument order of the table+matrix layout variant - Shader:send(name, matrixlayout, data, ...).
2020-07-10 22:52:23 -03:00
Alex Szpakowski 96b8d29a5c Clean up code for computing smooth line vertex colors. 2020-06-28 21:58:13 -03:00
Miku AuahDark a5cc52478f Merge branch 'master' into 12.0-development 2020-06-15 13:48:24 +08:00
Miku AuahDark cd6bbc1299 Merge branch 'master' of https://github.com/love2d/love 2020-06-15 13:44:28 +08:00
Miku AuahDark 74ceb08dce Add LodePNG and stb_image to license 2020-06-15 13:43:36 +08:00
Miku AuahDark 4191351f55 Update stb_image to 2.25 2020-06-15 13:23:53 +08:00
Miku AuahDark 5602d29812 Update lodepng to 20200306 2020-06-15 13:18:36 +08:00
Miku AuahDark b092347823 Enable JIT in Android 2020-06-10 12:22:16 +08:00
Alex Szpakowski c1d5937d0e Merge pull request #1584 from qaisjp/fix/github-typo
Fix "github" typo in readme
2020-06-08 23:16:26 -03:00
Qais Patankar ee43401c81 Fix "github" typo in readme 2020-06-08 11:38:45 +01:00
Alex Szpakowski 2c4bfab1de Merge branch '12.0-development' into GraphicsBuffer 2020-05-23 20:29:38 -03:00
Alex Szpakowski 0fae32706d Fix a crash on Windows. Resolves #1570. 2020-05-23 15:19:28 -03:00