Support color in text
This commit is contained in:
@@ -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__
|
||||
Reference in New Issue
Block a user