mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-03 09:25:52 +00:00
9bc8559c49
This was SVN commit r547.
31 lines
591 B
C++
Executable File
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;
|
|
};
|