mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
99ce2f73d5
This reworks the text rendering system so the tiles in some rendered text can be persisted across frames. This is important for performance in situations where you want to incrementally write to a text box for example in a Pokemon/Phoenix Wright style dialogue system. Previously the only way to do this was to render all the chars in the text every frame, which is currently prohibitively slow (though this could be potentially sped up). In addition with this implementation it is easy to individually colour each character, so I added the ability to do that to. I expanded the tests to test keeping the renderer instance (which contains the tiles) over multiple frames, and also added in some coloured text. If you are happy with this implementation then I will change the examples which use text, and also add some more documentation. Thanks for taking a look. |
||
---|---|---|
.. | ||
.cargo | ||
examples | ||
gfx | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml | ||
gba.ld | ||
gba_mb.ld | ||
rust-toolchain.toml |