Rename 'State' to 'Cursor'

This commit is contained in:
Jaby
2024-01-05 12:33:14 -06:00
committed by Jaby
parent cae33ea9b3
commit cbf2f22253
3 changed files with 18 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ namespace JabyEngine {
#define __write_impl(start, color, wiggle) \
va_list list; \
va_start(list, start); \
FontWriter::write(state, str, color, wiggle, list); \
FontWriter::write(cursor, str, color, wiggle, list); \
va_end(list)
GPU::TexPage::Linked tex_page[2];
@@ -36,16 +36,16 @@ namespace JabyEngine {
void clear();
void write(State& state, const char* str, ...) {
void write(Cursor& cursor, const char* str, ...) {
__write_impl(str, GPU::Color24::Grey(), nullptr);
}
void write(State& state, const char* str, GPU::Color24 color, ...) {
void write(Cursor& cursor, const char* str, GPU::Color24 color, ...) {
__write_impl(color, color, nullptr);
}
void write(State& state, const char* str, GPU::Color24 color, const Wiggle* wiggle, ...) {
void write(Cursor& cursor, const char* str, GPU::Color24 color, const Wiggle* wiggle, ...) {
__write_impl(wiggle, color, wiggle);
}
void write(State& state, const char* str, GPU::Color24 color, const Wiggle* wiggle, va_list list);
void write(Cursor& cursor, const char* str, GPU::Color24 color, const Wiggle* wiggle, va_list list);
void render();
#undef __write_impl