Commit Graph

5475 Commits

Author SHA1 Message Date
Sasha Szpakowski aef47df40c Add love.filesystem.openNativeFile (name may change in the future) 2024-12-29 16:43:49 -04:00
Sasha Szpakowski fe23e1920b Fix some compile warnings 2024-12-29 14:09:13 -04:00
Sasha Szpakowski 8443928fe7 Merge pull request #2126 from steveRoll-git/main
Improve `"justify"` text alignment
2024-12-25 17:50:53 -04:00
Sasha Szpakowski 7076688a65 Add variant of newCursor which takes an array, for different DPI scales.
Resolves #1708.
2024-12-25 17:45:39 -04:00
Sasha Szpakowski 3d9d162dd6 Add new drop events, add drop position to file/directorydropped.
Add love.dropbegan(), love.dropmoved(x, y), and love.dropcompleted(x, y).

Resolves #1346.
Resolves #2019.
2024-12-25 14:22:36 -04:00
Sasha Szpakowski 639580cbd1 Add opt-in support for trackpad touch events. Add touch device types.
- Add new touch device type enum ("touchscreen", "touchpad", "touchpadrelative"). Coordinates for touchscreens are window-relative DPI-scaled pixels, and coordinates for touchpads are normalized [0, 1] values.
- Add new devicetype enum and ismouse boolean params to touch callbacks.
- Add love.touch.getDeviceType(touchid), love.touch.isMouse(touchid), and optional device type filter param for love.touch.getTouches.
- Add t.trackpadtouch boolean (defaults to false) to love.conf. Trackpad touch events will not be generated unless it's enabled.

Currently the trackpadtouch setting only works on macOS.

Resolves #1633.
Resolves #2093.
2024-12-25 13:15:17 -04:00
Sasha Szpakowski aa93494f54 draw validation: clarify that a type mismatch involves MainTex 2024-12-24 18:50:11 -04:00
Sasha Szpakowski 25631ebe34 Improve execution flow when there's an error in the error handler 2024-12-24 17:13:12 -04:00
Sasha Szpakowski 3a6a36e21c Improve error message when a shader storage buffer format can't be parsed. 2024-12-23 16:46:42 -04:00
Sasha Szpakowski 3aac7da370 Improve handling of bools in shader storage buffer declarations. 2024-12-23 16:46:17 -04:00
Sasha Szpakowski a7be648368 fix copy/paste errors in Shader:getBufferFormat 2024-12-23 16:45:40 -04:00
Sasha Szpakowski a9470bb7f1 Add shared iOS/macOS xcframeworks folder to gitignore 2024-12-22 19:37:02 -04:00
Sasha Szpakowski aa79ed1ad1 Fix typo 2024-12-20 23:45:31 -04:00
Sasha Szpakowski b87aed937c vulkan: clean up framebuffers when textures they reference are deleted
Fixes corruption/crashing in some situations if a new texture's image view has the same pointer as a previously deleted texture's image view.
2024-12-20 23:37:06 -04:00
Sasha Szpakowski 1c0491c5c3 metal: hook up t.graphics.lowpower.
Resolves #2127.
2024-12-20 21:06:27 -04:00
Sasha Szpakowski da365e2ab9 Add t.graphics.lowpower = true/false love.conf option (defaults to false).
Add love.graphics.isLowPowerPreferred.

It's currently hooked up in the vulkan backend.
#2127
2024-12-20 21:02:20 -04:00
Sasha Szpakowski 285320ff75 Fix typo 2024-12-20 20:53:42 -04:00
Sasha Szpakowski b61b35d5fb move gammacorrect, renderers, and excluderenderers love.conf options to a new t.graphics table. 2024-12-20 20:40:53 -04:00
Sasha Szpakowski 8ca321b7d3 love.math.triangulate's error message when there are too few vertices includes the given vert count. 2024-12-20 12:35:51 -04:00
Sasha Szpakowski 4f514a6d0d Include zlib error code when love.data.decompress fails for zlib/gzip data. 2024-12-20 12:34:50 -04:00
Sasha Szpakowski 850e721be2 minor optimization: avoid opening a file twice when its full contents are read. 2024-12-19 18:18:41 -04:00
Sasha Szpakowski 58de1b43fb vulkan: add memory barriers for compute-writable textures. 2024-12-18 22:12:43 -04:00
Sasha Szpakowski e40e7317bb partial fix for high dpi on Windows
more work and possibly API redesigns will need to be done
2024-12-17 18:55:22 -04:00
Sasha Szpakowski b152688060 vulkan: fix rgb10a2 pixel format component order 2024-12-16 21:50:28 -04:00
Ron Tseytlin d4a2c460de Ignore last space in justified text 2024-12-16 22:50:43 +02:00
Ron Tseytlin 7e34e0ad21 Improve justified text alignment 2024-12-16 21:46:22 +02:00
Sasha Szpakowski 486cc22dbd prefer vulkan over opengl by default on windows/linux. 2024-12-10 19:44:39 -04:00
Sasha Szpakowski bd6c90b65d Fix a memory leak in TextBatch:add when the internal buffer is resized 2024-12-09 18:32:17 -04:00
Sasha Szpakowski 90b52df955 Fix 'sizenesw' system cursor 2024-12-09 18:30:27 -04:00
Sasha Szpakowski 58000b4e9e love.graphics.print doesn't stop at \0 2024-12-01 14:29:54 -04:00
Sasha Szpakowski fe4fc84659 vulkan: implement MSAA textures. 2024-12-01 14:23:13 -04:00
Miku AuahDark 2e58f1db5c Merge pull request #2121 from learn-more/github_action
Work around an issue with github builders
2024-12-01 15:04:56 +08:00
Mark Jansen ec4b2901ce Use a non-deprecated method of selecting the toolchain
Co-authored-by: Miku AuahDark <auahdark687291@gmail.com>
2024-11-29 17:46:30 +01:00
Mark Jansen 2089bbd0c8 Work around an issue with github builders 2024-11-29 14:41:06 +01:00
Sasha Szpakowski 2904ba7739 Fix Shader:getBufferFormat crashing instead of erroring when the buffer name doesn't exist in the shader. 2024-11-24 13:30:07 -04:00
Sasha Szpakowski f8b1942ce4 opengl: fix scissor state when switching between a canvas and the screen while a scissor is active.
Fixes #2112.
2024-11-16 00:08:06 -04:00
Sasha Szpakowski 383fec4ea5 Fix stale buffers being referenced by a SpriteBatch after resizing.
Fixes #2117.
2024-11-09 23:33:34 -04:00
Sasha Szpakowski 43a295a7f0 Add basic editorconfig for src subfolder. 2024-11-02 18:18:21 -03:00
Sasha Szpakowski a93eb5abc6 Fix icon and cursor rgba order 2024-11-01 17:09:42 -03:00
Sasha Szpakowski 819d9b7e7c Fix the darken blend mode 2024-11-01 08:03:45 -03:00
Sasha Szpakowski d099da1e3b Fix setting window position 2024-10-25 18:52:46 -03:00
Sasha Szpakowski b2785df437 Merge pull request #2097 from rfht/main
avoid segfault on OpenBSD by not accessing array at index -1
2024-10-21 22:08:05 -03:00
Sasha Szpakowski 2655a429ef replace some macOS-specific event code with more generic code. 2024-10-21 21:46:17 -03:00
Sasha Szpakowski d73036f44d vulkan: safer cleanup on shutdown 2024-10-20 14:35:23 -03:00
Sasha Szpakowski a6d29e4a76 Fix build 2024-10-20 13:00:41 -03:00
Sasha Szpakowski 88137d1b65 Add optional wait timeout parameter to love.event.pump.
Deprecate love.event.wait.
2024-10-20 12:43:29 -03:00
Sasha Szpakowski 0c7fc9c04a love.timer.sleep max precision is now in ns instead of ms.
resolves #1970.
2024-10-19 15:36:34 -03:00
Sasha Szpakowski b116857102 add love.exposed and love.occluded event callbacks.
Add love.window.isOccluded.

Resolves #2004.
2024-10-19 13:41:34 -03:00
Sasha Szpakowski 6e82633b56 love.visible is called when minimizing/unminimizing the window. 2024-10-19 12:33:42 -03:00
Sasha Szpakowski d3cd2aef36 love.window.isVisible also checks if the window is minimized. 2024-10-19 11:26:17 -03:00