The-Powder-Toy/src/graphics/FontReader.h
Tamás Bálint Misius 7724a60467
Compress font data
2020-12-25 19:46:13 +01:00

23 lines
364 B
C++

#pragma once
#include <cstddef>
#include "common/String.h"
#define FONT_H 12
class FontReader
{
unsigned char const *pointer;
int width;
int pixels;
int data;
FontReader(unsigned char const *_pointer);
static unsigned char const *lookupChar(String::value_type ch);
public:
FontReader(String::value_type ch);
int GetWidth() const;
int NextPixel();
};