#pragma once #include "gpu_primitives.hpp" namespace JabyEngine { namespace GPU { struct BIOS_Font { // This size is by Hardware limitation static constexpr auto Size = SizeU16::create(16, 16); // The following two values can be easily changed static constexpr auto TextureLoadPos = PositionU16::create(0, 0); static constexpr auto CLUTLoadPos = PositionU16::create(0, 96); static constexpr TexPage get_tex_page() { return TexPage::create(BIOS_Font::TextureLoadPos, GPU::TexturePageColor::$4bit); } static constexpr OffsetPageWithClut get_offset_page_with_clut() { return OffsetPageWithClut::create(PageOffset::create(BIOS_Font::CLUTLoadPos.x & 0x3F, BIOS_Font::CLUTLoadPos.y & 0xFF), PageClut::create(BIOS_Font::CLUTLoadPos)); } }; } }