Commit Graph

4661 Commits

Author SHA1 Message Date
Sasha Szpakowski 4ace4bc3b6 Initial fallback font support for Harfbuzz text shaping. 2022-12-31 21:45:12 -04:00
Sasha Szpakowski 9502942b7b font rendering: reimplement tab-as-spaces support. 2022-12-28 19:46:48 -04:00
Sasha Szpakowski 7a0f6621e7 Initial (WIP) Harfbuzz text shaping integration.
This a significant refactor / rewrite of much of the love.graphics Font code.
Text positioning is now split into TextShaper classes in the love.font module. This isn't exposed to users yet.
BMFonts and ImageFonts use the same text shaping as before (in the new TextShaper API). Fonts loaded via FreeType now use Harfbuzz for text shaping.

The new code isn't at feature-parity with the old code yet. Harfbuzz-based text shaping enables kerning support in more fonts, character combining into ligature glyphs, and directions other than left-to-right (this isn't supported in love yet).
2022-12-26 19:06:08 -04:00
Miku AuahDark 9086afb718 Fix SDL_CONTROLLERSENSORUPDATE handling not surrounded in SDL version macro. 2022-12-12 15:15:57 +08:00
Sasha Szpakowski a37c2fb9a9 Mesh:attachAttribute: add an optional start array index parameter.
Allows easier use of a single instance buffer with multiple draws when instanced attributes are used (#1878).
2022-12-10 21:11:59 -04:00
Sasha Szpakowski f17d3d94f1 Rename love.graphics Text objects to TextBatch.
The name Text is too generic compared to what they're designed for, it made people unnecessarily confused about their purpose.
2022-12-08 18:46:44 -04:00
Sasha Szpakowski 90c3e8d6c8 remove pre-SDL 2.0.4 hacks from window code. 2022-12-07 23:30:20 -04:00
Sasha Szpakowski c0c195ec47 Fix lua wrapper return value count for Texture:setWrap. 2022-12-07 22:51:42 -04:00
Sasha Szpakowski c89192990b vulkan: potentially improved highdpi support.
Mostly untested.
2022-12-06 20:36:36 -04:00
Sasha Szpakowski 8119b87b89 Merge pull request #1874 from MikuAuahDark/sdl209
Bump minimum SDL version to 2.0.9
2022-12-06 09:56:25 -04:00
Miku AuahDark 7a3d2be804 Remove touch coordinates normalization workaround in Linux. 2022-12-06 14:51:03 +08:00
Miku AuahDark 93612a84d1 Bump minimum SDL version to 2.0.9 2022-12-06 14:19:53 +08:00
Sasha Szpakowski 72fca1c2da update xcode project with new sensor module files 2022-12-05 22:54:39 -04:00
Sasha Szpakowski 77f43342f6 Merge pull request #1873 from MikuAuahDark/sensor
love.sensor module and Joystick sensor functions.
2022-12-05 22:35:44 -04:00
Miku AuahDark bc1c619599 Sensor: Check if getConstant is successful. 2022-12-06 10:05:24 +08:00
Miku AuahDark 64d79eed18 Rename (joystick) sensor callbacks to past tense. 2022-12-06 09:46:30 +08:00
Miku AuahDark d801c07691 Update changes.txt 2022-12-06 00:16:50 +08:00
Miku AuahDark 0753e7eee7 Silence some compiler warnings. 2022-12-06 00:16:38 +08:00
Miku AuahDark 32bebfd1fc Rename love.sensor.isAvailable to love.sensor.hasSensor. 2022-12-06 00:01:47 +08:00
Miku AuahDark a2a7ecd1e7 Fixed sensor callback. 2022-12-05 23:54:20 +08:00
Miku AuahDark 9834c913dd Deprecate t.accelerometerjoystick 2022-12-05 23:46:52 +08:00
Miku AuahDark e73cc07130 Add love.joysticksensorupdate callback. 2022-12-05 23:25:29 +08:00
Miku AuahDark 0442128006 Sensor in Joystick. 2022-12-05 23:09:50 +08:00
Miku AuahDark bdbd4a9a58 Add error handling in love.sensor.getData and only pass 3 values on love.sensorupdate. 2022-12-05 22:22:25 +08:00
Miku AuahDark a4b94cd848 Add love.sensor.getName(sensorType) 2022-12-05 15:28:44 +08:00
Miku AuahDark 8cfb2d54d1 Add null check to Sensor::getHandles() 2022-12-05 15:21:10 +08:00
Miku AuahDark 0f13628f8e Add love.sensorupdate 2022-12-05 15:15:36 +08:00
Miku AuahDark 1fa9159f04 Register love.sensor module. 2022-12-05 14:33:11 +08:00
Miku AuahDark 332b8d01ac love.sensor Lua API 2022-12-05 13:57:39 +08:00
Miku AuahDark 8f7eac4fde Initial sensor module. 2022-12-05 13:33:04 +08:00
Sasha Szpakowski 9aedfb3dd6 Merge branch 'main' into 12.0-development 2022-12-04 19:52:25 -04:00
Sasha Szpakowski a51d45b1a3 Reduce source:tell drift after a streaming Source loops.
Fixes #1810
2022-12-04 19:36:38 -04:00
Sasha Szpakowski d70514b2d1 vulkan: when vsync is off prefer immediate instead of mailbox mode, for now.
Fixes #1852. This might be reevaluated in the future.
2022-12-04 17:51:11 -04:00
Sasha Szpakowski 4136da52e9 vulkan: fix love.window.getVSync 2022-12-04 17:48:17 -04:00
Sasha Szpakowski 69c14d22b7 Merge pull request #1871 from zombrodo/fix/font-deprecation
fix: remove usage of setNewFont on error handler
2022-12-04 00:06:19 -04:00
Jack Robinson 708b8d3b04 fix: remove usage of setNewFont on error handler 2022-12-04 16:47:17 +13:00
Sasha Szpakowski 9e4b70c498 Merge pull request #1861 from zombrodo/fix/1834-stiffness
Fix #1834: Give MouseJoint a sensible stiffness and damping initial value
2022-12-03 23:23:07 -04:00
Jack Robinson a37803507f Remove getters/setters for frequency from Physics joints 2022-12-04 15:06:39 +13:00
Miku AuahDark 77e602f055 Workaround GitHub Actions build issue in Windows.
See actions/runner-images#6627
2022-11-27 12:46:20 +08:00
Sasha Szpakowski 2598a51316 Unify love.system.getOS and love._os implementations. 2022-11-26 20:54:46 -04:00
Sasha Szpakowski 6599697835 opengl: Fix love_PixelCoord and love_ScreenSize in shaders.
Fixes #1866.
2022-11-25 23:27:04 -04:00
Miku AuahDark b738668e9c Only show deprecation notice of using slash in require if the file is found. 2022-11-22 11:58:30 +08:00
Jack Robinson cd52af20a7 Fix #1834: Give MouseJoint a sensible stiffness and damping initial value 2022-11-02 19:42:48 +13:00
slime 8cda22ef7d Remove NaN-check C assert calls in line drawing code.
Users can pass NaN point values into line drawing code. love shouldn't abort the entire program if that happens.
2022-10-30 12:30:42 -03:00
slime73 6c47966b41 Merge pull request #1858 from nikeinikei/12.0-development
vulkan: minor cleanup
2022-10-29 21:31:39 -03:00
niki 089746dbf1 Merge branch '12.0-development' of https://github.com/nikeinikei/love into 12.0-development 2022-10-27 14:22:46 +02:00
niki 3b3bd63c93 vulkan: improve loop in createVulkanVertexFormat 2022-10-27 14:22:43 +02:00
nikeinikei fd6870a7ce Merge branch 'love2d:12.0-development' into 12.0-development 2022-10-26 12:16:04 +02:00
slime ae0688c834 macOS/metal: workaround for bug where high power GPU won't fully activate 2022-10-25 19:51:03 -03:00
slime73 3228a3b436 Merge pull request #1857 from premek/help-option
print usage when there is no game and when --help option is used
2022-10-25 17:10:13 -03:00