Prepare simple API interface
This commit is contained in:
9
Support/include/FontWriter/Type/types.hpp
Normal file
9
Support/include/FontWriter/Type/types.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
#include <PSX/GPU/gpu_types.hpp>
|
||||
|
||||
namespace JabyEngine {
|
||||
struct FontInfo {
|
||||
GPU::SizeU16 VRAMSize;
|
||||
GPU::SizeU16 FontSize;
|
||||
};
|
||||
}
|
||||
13
Support/include/FontWriter/default_font.hpp
Normal file
13
Support/include/FontWriter/default_font.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "Type/types.hpp"
|
||||
|
||||
namespace JabyEngine {
|
||||
struct DefaultFont {
|
||||
static constexpr auto Info = FontInfo {
|
||||
.VRAMSize = {64, 80},
|
||||
.FontSize = {12, 16}
|
||||
};
|
||||
|
||||
static void load(GPU::PositionU16 vram_dst);
|
||||
};
|
||||
}
|
||||
@@ -1,3 +1,8 @@
|
||||
#pragma once
|
||||
#include "Type/types.hpp"
|
||||
|
||||
void test();
|
||||
namespace JabyEngine {
|
||||
struct FontWriter {
|
||||
static void setup(GPU::PositionU16 vram_pos, const FontInfo& font_info);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user