Commit Graph
154 Commits
Author SHA1 Message Date
meehl 99dd50de62 cargo update 2026-08-24 10:38:51 +02:00
meehl 6224a1b0a4 Lint 2026-08-24 10:24:51 +02:00
meehl 8cf5110eb2 Fix trailing whitespaces being ignored by string width query 2026-08-24 09:46:33 +02:00
meehl 493a2ba9cf Fix typo 2026-08-24 08:58:00 +02:00
meehl cc6de120f2 Refactor context handling and redraw requests
Remove unsafe pointer shenanigans and give Lua instance ownership over
`Context`. Event handlers now directly mutate Context instead of using a
shared app state which is then hooked up to Context via unsafe pointers.
The removal of a shared state means stages (previously called "modes")
are now responsible for keeping their own internal state.

Additionally, clean up draw request handling and module hierarchy.
2026-08-23 23:55:43 +02:00
meehl 337e876571 Fix off-by-one error in batcher 2026-08-23 15:24:14 +02:00
meehl d4ca16f07e Remove unnecessary Box around Context 2026-08-20 10:50:30 +02:00
meehl 6fe15c63fe DrawCommandRecorder::finish() doesn't need mutable reference 2026-08-18 11:06:38 +02:00
meehl 1cd62c2b1c Fix absolute positioning of text 2026-08-18 11:04:34 +02:00
meehl d43a1cf392 Hash draw commands directly from their byte representation 2026-08-18 10:58:06 +02:00
meehl e5bd0157d3 Update dependencies 2026-08-18 09:54:21 +02:00
meehl 43ef18c2e3 Align text with physical pixel grid to reduce blurriness 2026-08-16 11:08:45 +02:00
meehl 4d6c258932 Major renderer refactor
Replace old per-mesh bind group model with a better batching schema
built around wgpu's TEXTURE_BINDING_ARRAY support. Each batch now
holds multiple textures. Vertex and index buffers are now only set once
per frame. Massively improves rendering performance.
2026-08-16 01:25:22 +02:00
meehl 3fc87339ca Refactor draw command recording.
Remove distinct draw primitives and unify them into one shared form.
2026-08-15 19:19:55 +02:00
meehl a6d18a320c Fix comment 2026-08-15 19:19:34 +02:00
meehl e20a28fef7 Use layered font atlas.
Add layers instead of growing in height as more and more glyphs are
added. This allows us to return normalized UV coordinates since the
dimensions of each layer stay the same.
2026-08-15 15:49:25 +02:00
meehl b48edb72e1 Clean up return values of some API functions 2026-08-12 21:05:34 +02:00
meehl e43da1b9e8 Lint 2026-08-12 20:46:43 +02:00
meehl 99fc9f608e Improve performance of image handle access in API draw calls.
Use raw Lua C API to store image handles in Lua userdata instead
of using `mlua::UserData`. `mlua` wraps UserData in a special way
to maintain Rust safety guarantees which prevents direct access
of the underlying data from a raw Lua state.
The `DrawImage` and `DrawImageQuad` API calls used a workaround to
access the underlying image handle before which added significant
overhead. The overhead is eliminated by manually constructing the
userdata metatable for `ImageHandle` at the cost of weaker safety
guarantees.
2026-08-12 18:03:41 +02:00
meehl c1d91768bb Improve parsing of color escapes 2026-08-12 14:37:01 +02:00
meehl 4c581f92a8 Fix color escape regex 2026-08-12 14:10:00 +02:00
meehl a2afd2de54 Upgrade parley to v0.11 2026-08-11 23:17:58 +02:00
meehl a1cea10218 Upgrade wgpu to v30 2026-08-11 20:30:21 +02:00
meehl cee6f848ea Upgrade dds to v0.2 2026-08-11 19:26:24 +02:00
meehl 5c44328e16 Upgrade mlua to v0.12.0 2026-08-11 17:37:53 +02:00
meehl 6b6098d331 chore: Release rusty-path-of-building version 0.2.18
Release / create-release (push) Successful in 8s
v0.2.18
2026-05-29 15:09:23 +02:00
meehl 69d70e4712 Update CHANGELOG 2026-05-29 15:08:27 +02:00
meehl 32fd954952 Raise max_texture_array_layers requirement to support new gem tooltips 2026-05-29 15:02:35 +02:00
Aleksandr Timofeev 40ea4445cd Fix doubleclick handling (#49) 2026-05-24 21:11:19 +02:00
meehl 3ca5f984de chore: Release rusty-path-of-building version 0.2.17
Release / create-release (push) Successful in 8s
v0.2.17
2026-05-24 09:29:31 +02:00
meehl 6dbf6c0e3c Update CHANGELOG 2026-05-24 09:29:09 +02:00
meehl 6a05d86801 Adjust index to account for color escape sequences
get_text_index_at_cursor() returns an index into the stripped string,
but PoB expects an index into the original unstripped text. Accumulate
the total length of all escape sequences preceding the cursor position
and add it to the returned index.

Fixes #45
2026-05-14 10:42:26 +02:00
meehl 068dfce7ca Use correct font names to register generic font families
Fixes #48
2026-05-13 15:37:54 +02:00
Game Monster 28a9089443 Add macOS development setup guide to CONTRIBUTING 2026-04-08 15:23:38 +02:00
Game Monster e42776a2c8 Improve macOS compatibility
Enables wgpu's metal backend and restricts usage of smithay-clipboard, which provides access to the Wayland clipboard, to linux systems.
2026-04-08 14:48:21 +02:00
meehl c8bda4b76f chore: Release rusty-path-of-building version 0.2.16
Release / create-release (push) Successful in 4s
v0.2.16
2026-03-23 08:54:23 +01:00
meehl fe10962c4b Update CHANGELOG 2026-03-23 08:53:54 +01:00
meehl 4dc8db6921 Fix tar extraction 2026-03-23 08:49:59 +01:00
meehl 716add6d76 chore: Release rusty-path-of-building version 0.2.15
Release / create-release (push) Successful in 7s
v0.2.15
2026-03-22 22:53:27 +01:00
meehl 98af75c725 Update CHANGELOG 2026-03-22 22:52:54 +01:00
meehl 88bd3fa403 Installer refactor
Uses reqwest instead of ureq for better IPv6 handling.
2026-03-22 22:45:48 +01:00
meehl b16f7f528d chore: cargo update and bump fast_image_resize to v6.0.0 2026-03-22 10:22:45 +01:00
meehl e2c0f2fffc chore: Release rusty-path-of-building version 0.2.14
Release / create-release (push) Successful in 6s
v0.2.14
2026-03-14 10:35:33 +01:00
meehl a6be413190 Update CHANGELOG 2026-03-14 10:35:21 +01:00
AiSatan 8034eef8c7 fix removing build directory 2026-03-11 16:48:11 +01:00
meehl 3b0d5295d3 installer: only install release versions
This prevents the installer from trying to download a beta version which
leads to a 404.
2026-03-10 16:07:54 +01:00
meehl ff46a570fc chore: Release rusty-path-of-building version 0.2.13
Release / create-release (push) Successful in 4s
v0.2.13
2026-03-09 18:17:47 +01:00
meehl 7db64e337d Update CHANGELOG 2026-03-09 18:17:33 +01:00
meehl 522ab489cd Fix ascendancy flavour text size. 2026-03-09 18:13:58 +01:00
meehl 8217aca6f2 chore: Release rusty-path-of-building version 0.2.12
Release / create-release (push) Successful in 4s
v0.2.12
2026-03-09 16:35:19 +01:00