7#include <mgdl/mgdl-util.h>
8#include <mgdl/wii/mgdl-wii-image.h>
60 void CreateVertexList();
61 void CreateTextureCoordList(
short rows,
short charactersPerRow,
short texW,
short texH);
62 void SetFirstCharacterIndex(
short firstIndex);
63 void SetCharacterDimensions(
short characterWidth,
short characterHeight);
76 void DrawText(
const char *text,
short x,
short y,
float scale, u32 col);
93 void Printf(
short x,
short y,
float scale, u32 col,
const char* format, ... );
Fixed font handling class.
Definition mgdl-wii-font.h:24
short GetCharacterWidth()
Returns the width of this font in pixels.
Definition wii-font.cpp:248
virtual ~FFont()
Class deconstructor.
Definition wii-font.cpp:34
void Printf(short x, short y, float scale, u32 col, const char *format,...)
Draw text with a printf-like syntax.
Definition wii-font.cpp:230
void DrawText(const char *text, short x, short y, float scale, u32 col)
Draw text.
Definition wii-font.cpp:155
gdl::wii::TEX2f32 GetTextureCoordinate(char character, char subIndex)
Returns the texture coordinate of a character.
Definition wii-font.cpp:258
FFont()
Class constructor.
Definition wii-font.cpp:25
void BindSheet(ImageWii &image, short charw, short charh, char firstCharacter)
Binds the font handler class to an gdl::Image object of a font sheet.
Definition wii-font.cpp:45
short GetHeight()
Returns the height of this font in pixels.
Definition wii-font.cpp:243
short GetStringWidth(const char *str)
Returns the width of the given string in pixels.
Definition wii-font.cpp:253
Image handling class.
Definition mgdl-wii-image.h:47
Library namespace.
Definition wii-globals.cpp:12
UV texture coordinate.
Definition mgdl-wii-types.h:63