Ykkrosh
3f017c418c
Changed SoundGroupTable to use the right string type for the comparison. Also changed from CStr8 to CStr because I prefer that spelling (and it's more consistent with most other code). This was SVN commit r4771.
36 lines
418 B
C++
36 lines
418 B
C++
#ifndef _FONT_H
|
|
#define _FONT_H
|
|
|
|
#include "lib/res/handle.h"
|
|
|
|
class CStrW;
|
|
|
|
/*
|
|
|
|
To use CFont:
|
|
|
|
CFont font("name");
|
|
font.Bind();
|
|
glwprintf(L"Hello world");
|
|
|
|
*/
|
|
|
|
class CFont
|
|
{
|
|
public:
|
|
CFont(const char* name);
|
|
~CFont();
|
|
|
|
void Bind();
|
|
int GetLineSpacing();
|
|
int GetHeight();
|
|
int GetCharacterWidth(wchar_t c);
|
|
void CalculateStringSize(const CStrW& string, int& w, int& h);
|
|
|
|
private:
|
|
Handle h;
|
|
};
|
|
|
|
|
|
#endif // _FONT_H
|