Adjust casing for FontInfo

This commit is contained in:
Jaby 2023-12-01 20:44:35 -05:00
parent 811562e4a5
commit 3e897b67cc
3 changed files with 5 additions and 5 deletions

View File

@ -7,8 +7,8 @@ namespace JabyEngine {
using FontPrimitive = GPU::SPRT::Linked; using FontPrimitive = GPU::SPRT::Linked;
struct FontInfo { struct FontInfo {
GPU::SizeU16 VRAMSize; GPU::SizeU16 texture_size;
GPU::SizeU16 FontSize; GPU::SizeU16 font_size;
}; };
struct FontBufferInfo { struct FontBufferInfo {

View File

@ -4,8 +4,8 @@
namespace JabyEngine { namespace JabyEngine {
struct DefaultFont { struct DefaultFont {
static constexpr auto Info = FontInfo { static constexpr auto Info = FontInfo {
.VRAMSize = {64, 80}, .texture_size = {64, 80},
.FontSize = {12, 16} .font_size = {12, 16}
}; };
static void load(uint32_t* work_area, SimpleTIM vram_dst); static void load(uint32_t* work_area, SimpleTIM vram_dst);

View File

@ -21,7 +21,7 @@ namespace JabyEngine {
} }
void setup(const FontBufferInfo& buffer_info, const SimpleTIM& vram_dst, const FontInfo& font_info) { void setup(const FontBufferInfo& buffer_info, const SimpleTIM& vram_dst, const FontInfo& font_info) {
FontWriter::setup(buffer_info, vram_dst, Make::SizeI16(font_info.FontSize.width, font_info.FontSize.height)); FontWriter::setup(buffer_info, vram_dst, Make::SizeI16(font_info.font_size.width, font_info.font_size.height));
} }
GPU::PositionI16 write(GPU::PositionI16 pos, const char* str, GPU::Color24 color = GPU::Color24::Grey(), uint8_t wiggle_count = 0); GPU::PositionI16 write(GPU::PositionI16 pos, const char* str, GPU::Color24 color = GPU::Color24::Grey(), uint8_t wiggle_count = 0);