22#ifndef ULTIMA3_GFX_CHARSET_H
23#define ULTIMA3_GFX_CHARSET_H
25#include "graphics/font.h"
26#include "graphics/managed_surface.h"
32constexpr int CHARSET_TEXT_GLYPHS = 128;
33constexpr int CHARSET_MOON_GLYPHS = 8;
34constexpr int CHARSET_GLYPHS = CHARSET_TEXT_GLYPHS + CHARSET_MOON_GLYPHS;
35constexpr int CHARSET_GLYPH_PIXELS = 8 * 8;
45 static byte _data[CHARSET_GLYPHS * CHARSET_GLYPH_PIXELS];
54 return CHARSET_TEXT_GLYPHS + ((phase - 1) & (CHARSET_MOON_GLYPHS - 1));
void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override
int getFontHeight() const override
Definition: charset.h:63
int getCharWidth(uint32) const override
Definition: charset.h:83
int getMaxCharWidth() const override
Definition: charset.h:72
static uint32 moonIcon(byte phase)
Definition: charset.h:53