Adjust casing for FontInfo
This commit is contained in:
parent
811562e4a5
commit
3e897b67cc
|
@ -7,8 +7,8 @@ namespace JabyEngine {
|
|||
using FontPrimitive = GPU::SPRT::Linked;
|
||||
|
||||
struct FontInfo {
|
||||
GPU::SizeU16 VRAMSize;
|
||||
GPU::SizeU16 FontSize;
|
||||
GPU::SizeU16 texture_size;
|
||||
GPU::SizeU16 font_size;
|
||||
};
|
||||
|
||||
struct FontBufferInfo {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
namespace JabyEngine {
|
||||
struct DefaultFont {
|
||||
static constexpr auto Info = FontInfo {
|
||||
.VRAMSize = {64, 80},
|
||||
.FontSize = {12, 16}
|
||||
.texture_size = {64, 80},
|
||||
.font_size = {12, 16}
|
||||
};
|
||||
|
||||
static void load(uint32_t* work_area, SimpleTIM vram_dst);
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace JabyEngine {
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue