Prepare Font double buffer
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user