Commit Graph

4736 Commits

Author SHA1 Message Date
Sasha Szpakowski d3747cebb1 Rename love.graphics.drawShaderVertices to drawFromShader. 2023-02-05 15:16:10 -04:00
Sasha Szpakowski e13b0078a2 shaders: ignore code in comments when parsing entry point functions.
Fixes #1581.
2023-02-04 10:25:13 -04:00
Sasha Szpakowski defe811f62 Allow creating a mipmapped texture with less than the full mip range.
When creating a texture with user-specified mipmaps, it no longer errors if all mipmaps down to 1x1 aren't present.

Added a 'mipmapcount' field to the settings table in newImage and friends (only used when mipmaps are enabled for the texture.) If it's set, only mipmap levels up to the specified count will be created instead of always creating the full range.

Old OpenGL ES 2 devices don't support loading a mipmapped texture without the full mipmap range, so there's a new 'mipmaprange' boolean field in the table returned by love.graphics.getSupported.
2023-01-29 16:02:39 -04:00
Sasha Szpakowski 8706f0ef6a Rename Texture:isRenderTarget to Texture:isCanvas. 2023-01-29 15:58:31 -04:00
Miku AuahDark 61352b90a5 Update dr_mp3 to 0.6.34.
Closes #1898
2023-01-24 20:42:21 +08:00
Sasha Szpakowski 7e661d2fb1 Merge pull request #1892 from MikuAuahDark/srcindex
Provide PDB with Source Indexing as Artifacts
2023-01-15 15:51:09 -04:00
Miku AuahDark c46423198e Reduce the compiled binary size. 2023-01-15 11:48:04 +08:00
Sasha Szpakowski 9edae19d74 Merge branch 'main' into 12.0-development 2023-01-14 22:40:13 -04:00
Sasha Szpakowski 592c306276 Fix images with mipmaps when ANGLE is used with an AMD gpu. 2023-01-14 22:35:00 -04:00
Sasha Szpakowski 8cac37b811 Fix typo 2023-01-14 12:17:57 -04:00
Sasha Szpakowski 8ae7342875 Improve variable name readability in line rendering code. 2023-01-14 12:13:35 -04:00
Sasha Szpakowski 0acb2f57dc Revert "CI: explicitly set the visual studio version when building for windows"
This reverts commit fed946505f.
2023-01-14 10:58:32 -04:00
Sasha Szpakowski fed946505f CI: explicitly set the visual studio version when building for windows 2023-01-14 10:54:59 -04:00
Miku AuahDark 20ad44cd99 Source index PDB and upload it as artifacts. 2023-01-14 16:10:41 +08:00
Sasha Szpakowski f6b74e9ce7 WheelJoint:getMotorTorque takes a dt param instead of inverse dt.
Matches the change made to RevoluteJoint:getMotorTorque.
2023-01-13 18:10:45 -04:00
Sasha Szpakowski a85858236d error handler: increase font size slightly.
The new default font plus better kerning made the old size too small compared to 11.4.
2023-01-12 19:26:37 -04:00
Sasha Szpakowski 94d05e319b Clear auto-generated temporary depth/stencil buffers in setCanvas.
Previously it would discard them, which needed the user to call love.graphics.clear afterward to get them into a valid state.

The current code has suboptimal performance if the user still calls clear after setCanvas (a common situation), so more optimizations will probably be needed.

Fixes #1843.
2023-01-11 18:17:22 -04:00
Sasha Szpakowski 249d90067e Don't discard the backbuffer depth/stencil in setCanvas.
#1893.
2023-01-11 08:58:12 -04:00
Sasha Szpakowski 8572d4f935 Merge branch 'text-shaping' into 12.0-development 2023-01-08 20:48:48 -04:00
Sasha Szpakowski 52283425ca metal: fix crashes on the iOS Simulator 2023-01-08 20:37:05 -04:00
Sasha Szpakowski c2778587f7 Merge branch '12.0-development' into text-shaping 2023-01-08 20:31:37 -04:00
Sasha Szpakowski 5c9ccd1652 iOS: Add harfbuzz.xcframework to xcode project 2023-01-08 20:25:38 -04:00
Sasha Szpakowski b0f79f78a5 vulkan: don't pass a SDL_Window into GetInstanceExtensions, it's unneeded. 2023-01-08 15:21:26 -04:00
Sasha Szpakowski 6a6ec2eeb6 Merge branch 'main' into 12.0-development 2023-01-06 17:15:29 -04:00
Sasha Szpakowski 52fa5cf8f0 CI: update repository URL for love-appimage-source 2023-01-06 17:12:01 -04:00
Sasha Szpakowski 6a3031f357 Remove very old unused nsis installer file.
CMake is used instead these days.
2023-01-06 17:03:38 -04:00
Sasha Szpakowski 82e516f2fb Untested attempt at linux support for harfbuzz dependency 2023-01-03 21:12:16 -04:00
Sasha Szpakowski b8a0e58fa6 macOS: add harfbuzz.framework reference to xcode project. 2023-01-03 20:36:11 -04:00
Sasha Szpakowski bb82a448be Fix another compile error with some compilers. 2023-01-03 20:35:31 -04:00
Sasha Szpakowski 431c6a110c Merge branch '12.0-development' into text-shaping 2023-01-01 19:32:27 -04:00
Sasha Szpakowski b0ae189d13 mac/iOS: CI uses 12.x branch of love-apple-dependencies 2023-01-01 19:01:43 -04:00
Sasha Szpakowski d980b366da Add TextShaper file references to Xcode project 2023-01-01 18:33:25 -04:00
Sasha Szpakowski de2b986787 Code style fixes 2023-01-01 15:07:37 -04:00
Sasha Szpakowski 616ed0e7f8 Fix compile errors with some compilers. 2023-01-01 12:52:38 -04:00
Sasha Szpakowski 6f14a18da0 Update copyright year in TextShaper files 2023-01-01 12:20:01 -04:00
Sasha Szpakowski d085f44e6a Merge branch '12.0-development' into text-shaping 2023-01-01 12:18:54 -04:00
Sasha Szpakowski 22b6388a96 Merge pull request #1888 from steveRoll-git/main
Allow Canvas:renderTo to accept varargs
2023-01-01 10:59:42 -04:00
Sasha Szpakowski 74f884b41f Merge branch 'main' into 12.0-development 2023-01-01 10:57:32 -04:00
Miku AuahDark 0b0ff5551f Hide symbol visibility in CMake and Android.mk. 2023-01-01 15:16:26 +08:00
Miku AuahDark 3a49dc555a Fix megasource link. 2023-01-01 14:46:25 +08:00
Sasha Szpakowski f6cdbdc868 Merge branch 'main' into 12.0-development 2022-12-31 22:46:34 -04:00
Sasha Szpakowski 0b75f6cfa5 Missed some files... 2022-12-31 22:36:48 -04:00
Sasha Szpakowski c823dbca96 Update copyright year for 2023 2022-12-31 22:25:49 -04:00
Sasha Szpakowski 4ace4bc3b6 Initial fallback font support for Harfbuzz text shaping. 2022-12-31 21:45:12 -04:00
Ron Tseytlin c5d72846c4 Allow Canvas:renderTo to accept varargs
The varargs will be forwarded to the function.
2022-12-31 02:32:54 +02:00
Sasha Szpakowski 2e18128bec Merge branch 'main' into 12.0-development 2022-12-30 00:04:32 -04:00
Sasha Szpakowski fc3f5ee620 macOS: remove stray library search path 2022-12-30 00:03:58 -04:00
Sasha Szpakowski fc5b53a456 macOS: work around linking issues when building the app executable. 2022-12-30 00:01:10 -04:00
Sasha Szpakowski 456f897e43 Merge branch 'main' into 12.0-development 2022-12-29 12:12:28 -04:00
Sasha Szpakowski 6730d57f04 macOS: compile with symbols hidden by default. 2022-12-29 10:28:28 -04:00