Prepare simple API interface

This commit is contained in:
Jaby
2023-11-24 22:12:29 -05:00
parent 43f48ab374
commit 2c44f21748
9 changed files with 55 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
#pragma once
#include <PSX/GPU/gpu_types.hpp>
namespace JabyEngine {
struct FontInfo {
GPU::SizeU16 VRAMSize;
GPU::SizeU16 FontSize;
};
}

View 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);
};
}

View File

@@ -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);
};
}