#include <ttfDraw.h>
Public Member Functions | |
bool | load (const char *file) |
TrueTypeFont資源の読み出し. | |
SDL_Surface * | createText (const unsigned short *text, int pxSize, unsigned long color=White, unsigned long background=Black) |
文字列サーフェスの作成 | |
SDL_Surface * | createText (const char *text, int pxSize, unsigned long color=White, unsigned long background=Black) |
Definition at line 28 of file ttfDraw.h.
bool TTF_Draw::load | ( | const char * | file | ) |
TrueTypeFont資源の読み出し.
file | [i] TrueTypeFont資源のファイル |
Definition at line 68 of file ttfDraw.cpp.
References VXV::length().
Referenced by vmonitor::getObject(), and ResourceInitialize::Initialize().
SDL_Surface * TTF_Draw::createText | ( | const unsigned short * | text, | |
int | pxSize, | |||
unsigned long | color = White , |
|||
unsigned long | background = Black | |||
) |
文字列サーフェスの作成
text | [i] ユニコード文字列 | |
pxSize | [i] 文字サイズ | |
color | [i] 色 | |
background | 背景色 |
Definition at line 87 of file ttfDraw.cpp.
Referenced by ComboBoxComponent::activate(), createText(), UserCreateScr::Initialize(), PracticeMenu::Initialize(), NetworkMenu::Initialize(), and FirstMenu::Initialize().
SDL_Surface * TTF_Draw::createText | ( | const char * | text, | |
int | pxSize, | |||
unsigned long | color = White , |
|||
unsigned long | background = Black | |||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
text | [i] 文字列 | |
pxSize | [i] 文字サイズ | |
color | [i] 色 | |
background | 背景色 |
Definition at line 120 of file ttfDraw.cpp.
References createText(), and VXV::length().