Rename Support to lower-case to match rest

This commit is contained in:
2023-11-29 20:30:44 -05:00
parent a6071fd5fc
commit a3c813b7d4
10 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <PSX/File/file_types.hpp>
#include <PSX/GPU/gpu_primitives.hpp>
#include <PSX/GPU/gpu_types.hpp>
namespace JabyEngine {
using FontPrimitive = GPU::SPRT::Linked;
struct FontInfo {
GPU::SizeU16 VRAMSize;
GPU::SizeU16 FontSize;
};
struct FontBufferInfo {
FontPrimitive* double_buffer[2];
size_t single_buffer_length;
static constexpr FontBufferInfo empty() {
return FontBufferInfo{.double_buffer = {nullptr, nullptr}, .single_buffer_length = 0};
}
template<size_t N>
static constexpr FontBufferInfo from(FontPrimitive (&buffer)[2][N]) {
return FontBufferInfo{.double_buffer = {buffer[0], buffer[1]}, .single_buffer_length = N};
}
};
}

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(uint32_t* work_area, SimpleTIM vram_dst);
};
}

View File

@@ -0,0 +1,9 @@
#pragma once
#include "Type/types.hpp"
namespace JabyEngine {
struct FontWriter {
static void setup(const FontBufferInfo& buffer_info, const SimpleTIM& vram_dst, const FontInfo& font_info);
static void render();
};
}