OXYGENHUB
◆ main openmsx / src / PlotterFont.hh
612 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef PLOTTER_FONT_HH
2
#define PLOTTER_FONT_HH
3
4
#include "gl_vec.hh"
5
6
#include <cstdint>
7
#include <span>
8
#include <vector>
9
10
namespace openmsx {
11
12
enum class PlotterFontVariant : uint8_t {
13
	International,
14
	DIN,
15
};
16
17
enum class PlotterFontCommandType : uint8_t {
18
	Move,
19
	Draw,
20
};
21
22
struct PlotterFontCommand
23
{
24
	PlotterFontCommandType type;
25
	gl::vec2 delta;
26
	uint8_t raw;
27
};
28
29
[[nodiscard]] std::span<const uint8_t> getPRNC41Glyph(
30
	PlotterFontVariant variant, uint8_t code);
31
32
[[nodiscard]] std::vector<PlotterFontCommand> decodePRNC41Glyph(
33
	PlotterFontVariant variant, uint8_t code);
34
35
} // namespace openmsx
36
37
#endif