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
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
9502942b7b
font rendering: reimplement tab-as-spaces support.
2022-12-28 19:46:48 -04:00
Sasha Szpakowski
bcc4a45e46
Merge pull request #1885 from nikeinikei/12.0-development
...
Vulkan fixes
2022-12-27 13:32:08 -04:00
niki
74027ad780
vulkan: remove unneeded Module::getInstance call
2022-12-27 13:55:35 +01:00
niki
cd07a464fb
vulkan: document future possibility for vsync
...
Right now we have to recreate the swapchain everytime vsync
/ present mode changes.
VK_EXT_swapchain_maintenance1 might remove the need for this.
However, right now there are not any drivers yet that support it.
In the future, this might be the better way to handle this situation.
2022-12-27 13:54:46 +01:00
Sasha Szpakowski
7137c3ffb7
Remove #ifdefs supporting old Visual Studio versions.
2022-12-26 22:22:14 -04:00
Matt Durgavich
c441797976
Prefer snprintf over sprintf in OpenGL
2022-12-26 20:57:56 -05: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
niki
00c65d63fe
vulkan: fix incorrect descriptor sets
2022-12-25 23:09:57 +01:00
niki
8694c44207
vulkan: fix incorrect textures in shader uniforms
2022-12-24 22:37:58 +01:00
niki
28c69597e4
vulkan: fix crash
2022-12-22 02:27:35 +01:00
niki
ccca355664
vulkan: fix love.window.setVsync
2022-12-22 01:27:05 +01:00
nikeinikei
eec94ccc99
Merge branch 'love2d:12.0-development' into 12.0-development
2022-12-21 17:20:43 +01:00
niki
30bdb03f3b
vulkan: code styling
2022-12-21 17:20:13 +01:00
niki
92b5278b31
Merge branch '12.0-development' of https://github.com/nikeinikei/love into 12.0-development
2022-12-21 16:29:55 +01:00
Miku AuahDark
9086afb718
Fix SDL_CONTROLLERSENSORUPDATE handling not surrounded in SDL version macro.
2022-12-12 15:15:57 +08:00
niki
2d5b4966d3
vulkan: add missing vulkan errors
2022-12-11 23:21:47 +01: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
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
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
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