1
0
forked from 0ad/0ad
0ad/source/tools/fontbuilder/packer.h
Ykkrosh 9bc8559c49 Even more Linuxness
This was SVN commit r547.
2004-06-19 12:56:09 +00:00

31 lines
591 B
C++
Executable File

// $Id: packer.h,v 1.2 2004/06/19 12:56:09 philip Exp $
#include "font.h"
#include "wx/string.h"
#include <set>
class PackedFont
{
public:
PackedFont(FontRenderer* font, std::set<wchar_t> chars);
~PackedFont();
void Generate(bool ProgressCallback(float, wxString, void*), void* CallbackData);
// Sizes are always a power of two
int TextureWidth;
int TextureHeight;
// 24-bit (RGB) but greyscale image
unsigned char* TextureData;
// For the text file describing how to read all the glyphs
wxString FontDefinition;
private:
FontRenderer* Font;
std::set<wchar_t> Chars;
};