Support color in text

This commit is contained in:
Jaby
2023-06-22 21:52:34 +02:00
parent a4a7abe9b0
commit 343a4c1ab2
4 changed files with 53 additions and 16 deletions

View File

@@ -1,14 +1,17 @@
#ifndef __FONT_WRITER_HPP__
#define __FONT_WRITER_HPP__
#include <PSX/GPU/gpu_types.hpp>
#include <stdint.h>
namespace FontWriter {
using Position = JabyEngine::GPU::PositionI16;
static constexpr auto TextBufferSize = 1024;
void setup();
void write(int16_t x, int16_t y, const char* text);
void render();
Position write(Position pos, const char* text);
void render();
}
#endif //!__FONT_WRITER_HPP__