Gwilym Kuiper
3e8090e153
Fix clippy lint for inline format args
2022-12-09 20:36:09 +00:00
Gwilym Kuiper
99ce2f73d5
Textrender rework ( #352 )
...
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.
2022-11-21 23:14:40 +00:00
jem
77275e2718
add in asserts for palette indicies
2022-11-21 21:50:43 +00:00
Gwilym Kuiper
212fd32108
Remember to clear the renderer
2022-11-21 07:37:03 +00:00
Gwilym Kuiper
08ceef09cd
Rename 'c to 'b
2022-11-21 07:30:33 +00:00
Gwilym Kuiper
9660b6df12
Fix the text_render example
2022-11-21 07:28:40 +00:00
Gwilym Kuiper
707c2bf7e7
Remove the 'b lifetime
2022-11-21 07:26:48 +00:00
jem
fbcf001986
unneeded newlines
2022-11-20 23:17:49 +00:00
jem
8b23b7d54a
wrong title
2022-11-20 23:16:23 +00:00
jem
31c4d47872
whitespace
2022-11-20 23:15:09 +00:00
jem
0f3182d5b8
fix examples
2022-11-20 19:35:03 +00:00
jem
75fe0532f1
add docs
2022-11-20 19:33:39 +00:00
jem
e7d87b8eee
fix clippy warnings
2022-11-19 15:57:38 +00:00
jem
e576f0685e
readd new line
2022-11-19 15:49:55 +00:00
jem
07dc80e8fa
rework the text renderer
2022-11-19 15:44:29 +00:00
Gwilym Kuiper
deb907b9eb
Fix remaining spelling errors in agb
2022-11-17 21:16:40 +00:00
Gwilym Kuiper
45431615dc
Fix spelling errors in hash_map
2022-11-17 21:15:48 +00:00
Gwilym Kuiper
7621f47644
fix spelling errors in sync
2022-11-17 21:15:23 +00:00
Gwilym Kuiper
dce5f40c26
Fix spellings in sound
2022-11-17 21:14:38 +00:00
Gwilym Kuiper
da0ea524d9
Fix spelling errors in save
2022-11-17 21:13:22 +00:00
Gwilym Kuiper
51a8ec4d95
xfer -> transfer
2022-11-17 21:12:18 +00:00
Gwilym Kuiper
c8ff3b4359
blnd -> blend
2022-11-17 21:10:56 +00:00
Gwilym Kuiper
aa29b52b6b
PingPong is 2 words
2022-11-17 21:10:26 +00:00
Gwilym Kuiper
0d6e6c709c
Fix spellings in object.rs
2022-11-17 21:10:11 +00:00
Gwilym Kuiper
cc879a094e
Fix spellings in blend.rs
2022-11-17 21:05:26 +00:00
Gwilym Kuiper
32a8b213fb
disp -> display
2022-11-17 21:04:53 +00:00
Gwilym Kuiper
140442fe0b
Fix spellings in affine.rs
2022-11-17 21:04:32 +00:00
Gwilym Kuiper
b37ce0b9b6
Fix spelling errors in block_allocator
2022-11-17 21:03:32 +00:00
Gwilym Kuiper
55c7541386
backc is not a word
2022-11-17 21:00:51 +00:00
Corwin
b7a6158873
remove feature not required in later nightlies
2022-11-09 00:11:35 +00:00
Gwilym Kuiper
6319fd3a20
Fix doc errors and warnings
2022-11-01 22:02:51 +00:00
Gwilym Kuiper
9c99f25a56
Spell left correctly
2022-11-01 21:25:39 +00:00
Gwilym Kuiper
c57013aafd
Add deny(missing_docs) to input
2022-11-01 21:25:38 +00:00
Gwilym Kuiper
dfa70f4335
Add a bunch of docs for input
2022-11-01 21:15:47 +00:00
Corwin
2efddfc342
changes made to make new game
2022-10-31 19:31:54 +00:00
Corwin
70f22b9255
Release v0.12.2
2022-10-22 12:59:20 +01:00
Corwin
78f9fd2026
Release v0.12.1
2022-10-12 19:00:12 +01:00
Corwin
ae419fb6c1
when building docs, don't use instruction set
2022-10-12 17:30:08 +01:00
Corwin
a9faaffe46
reflow doc comments
2022-10-12 17:30:08 +01:00
Corwin
ab4089f5f3
fix broken links
2022-10-12 17:30:08 +01:00
Corwin
82baaa70cb
deny broken links
2022-10-12 17:30:08 +01:00
Corwin
886f604efe
rustfmt
2022-10-12 17:30:08 +01:00
Gwilym Kuiper
fc45af262b
Release v0.12.0
2022-10-11 23:34:13 +01:00
Gwilym Kuiper
f1fb9d5375
Remove pointless set_scroll_pos and scroll_pos from AffineBackground
2022-10-11 22:32:00 +01:00
Corwin
e30e0b76e2
Merge pull request #324 from corwinkuiper/affine-matrix-background
...
Use the new Affine Matrix stuff in the affine background
2022-10-09 20:51:26 +01:00
Corwin
ae8d2b2fa0
fix broken docs
2022-10-09 17:52:24 +01:00
Corwin
4dfa6c25a5
REMOVE UNUSED IMPORT THAT I JUST MADE
2022-10-09 17:27:07 +01:00
Corwin
f6dd65ae52
fix test
2022-10-09 17:21:30 +01:00
Corwin
6d7bc75bbb
remove another unused import (in the classic case of dev by CI)
2022-10-09 17:21:21 +01:00
Corwin
fb08d7e208
remove unused import
2022-10-09 17:05:06 +01:00