Alex Szpakowski
6f3e590a82
metal: more work on shader texture bindings
2020-10-24 17:58:25 -03:00
Alex Szpakowski
3b2b9ef5fd
metal: Fix a crash when deleting a stream buffer
2020-10-24 17:57:59 -03:00
Alex Szpakowski
27897b4af1
Merge branch '12.0-development' into metal
2020-10-24 00:36:33 -03:00
Alex Szpakowski
4b9c648c8b
metal: work towards shader uniform implementation.
...
Misc cleanup.
2020-10-24 00:33:02 -03:00
Garrett Brown
1b74b34cce
Update userdata stuff to how new box2d wants it
2020-10-17 22:30:01 -04:00
Garrett Brown
77f238767f
Update to box2d 2.4.1
2020-10-17 22:15:18 -04:00
Alex Szpakowski
2b0f8495bf
Fix a crash in Text:set. Fixes issue #1639
2020-10-16 21:19:50 -03:00
Gleb Mazovetskiy
0ad34a3c71
System.cpp: Do not require posix_spawn on "Linux"
...
Many libc implementations do not implement posix_spawn.
Allow love2d to build without it.
2020-10-13 08:39:54 +01:00
Alex Szpakowski
d083c87d74
Update glslang
2020-10-12 17:29:08 -03:00
Alex Szpakowski
0706b6243c
Add love.filesystem.mountFullPath.
2020-10-03 19:28:57 -03:00
Alex Szpakowski
8c86515d04
Revert "Windows: reduce stuttering in windowed mode via DwmFlush"
...
This reverts commit 5dd4a463be .
2020-10-01 22:09:47 -03:00
Alex Szpakowski
5dd4a463be
Windows: reduce stuttering in windowed mode via DwmFlush
...
Resolves issue #1628
2020-09-29 20:22:41 -03:00
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
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
Garrett Brown
a16640c89c
Added backwards compatible frequency/dampingRatio functions. Added new stiffness/damping functions.
2020-08-23 02:50:47 -04:00
Garrett Brown
ed257083c3
Revert this whitespace change
2020-08-16 22:42:29 -04:00
Garrett Brown
10002c91db
Didn't mean to change these
2020-08-16 21:20:16 -04:00
Garrett Brown
b074ae8f4c
Gotta lowercase these too
2020-08-16 19:39:36 -04:00
Garrett Brown
8f4476ca3d
Add one sided edge support. Just not sure if the ghost vertices are fine.
2020-08-16 19:12:56 -04:00
Garrett Brown
09db462fd6
Fixes
2020-08-16 19:01:59 -04:00
Garrett Brown
59a1a4b2cd
Finish wrapper function renames
2020-08-16 18:27:51 -04:00
Garrett Brown
74c6021e8d
Starting box2d update
2020-08-16 10:40:04 -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
a8c879f3bf
metal: initial texel buffer implementation
2020-07-29 19:35:45 -03:00
Alex Szpakowski
2e4b1f5dd9
metal: reimplement explicit attribute locations
...
Also reimplement temporary uniform buffer hack
2020-07-29 19:15:22 -03:00
Alex Szpakowski
3ae4a0f76b
metal: post merge compilation fixes
2020-07-29 18:51:21 -03:00
Alex Szpakowski
7a50f32585
Merge branch '12.0-development' into metal
2020-07-29 18:21:19 -03:00
Alex Szpakowski
eea78884d3
metal: initial barebones texture reflection in shaders
2020-07-29 18:11:20 -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
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