Prepare Font double buffer

This commit is contained in:
2023-11-25 17:23:49 +01:00
parent ef1890b3b7
commit 650509b03a
4 changed files with 39 additions and 4 deletions

View File

@@ -2,7 +2,24 @@
#include <stdio.h>
namespace JabyEngine {
void FontWriter :: setup(SimpleTIM vram_dst, const FontInfo& font_info) {
struct DoubleBuffer {
// Hooks?
FontBufferInfo prim_buffer;
static constexpr DoubleBuffer empty() {
return DoubleBuffer{.prim_buffer = FontBufferInfo::empty()};
}
void setup(const FontBufferInfo& buffer_info) {
this->prim_buffer = buffer_info;
}
};
static auto double_buffer = DoubleBuffer::empty();
void FontWriter :: setup(const FontBufferInfo& buffer_info, SimpleTIM vram_dst, const FontInfo& font_info) {
double_buffer.setup(buffer_info);
printf("Hello Planschi c:\n");
}
}