#include <libc/stdio.h>
#include <libc/malloc.h>
#include <pspgu.h>
#include "dxlibp.h"
#include "dxpstatic.h"
#include "intraFont.h"
#include <fastmath.h>
データ構造 | |
struct | GUCONTEXT_FORSTRING |
struct | DXP_FONTDATA |
マクロ定義 | |
#define | DXP_FONT_BASE_SIZE 22.627416997969522f |
#define | DXP_FONT_SQRT_SIZE 1.4142135623730951f |
関数 | |
static void | StringStart (GUCONTEXT_FORSTRING *ptr) |
static void | StringFinish (GUCONTEXT_FORSTRING *ptr) |
int | InitString () |
int | EndString () |
int | DrawString (int x, int y, const char *String, int Color, int EdgeColor) |
static DXP_FONTDATA * | FontHandle2Ptr (int handle) |
static DXP_FONTDATA * | FontHandle2PrevPtr (int handle) |
int | DrawStringWithHandle (int x, int y, const char *String, int color, int handle, int EdgeColor) |
int | DrawFormatString (int x, int y, int color, const char *String,...) |
float | GetDrawStringWidthWithHandleF (const char *String, int StrLen, int FontHandle) |
int | GetDrawStringWidthWithHandle (const char *String, int StrLen, int FontHandle) |
int | LoadFont (const char *font, int CharSet) |
int | DeleteFont (int handle) |
int | SetFontSize (int FontSize) |
int | SetFontSizeF (float FontSize) |
int | SetFontBackgroundColor (int Color) |
int | SetFontAlignment (int Position, int Width) |
int | DrawFormatStringToHandle (int x, int y, int Color, int FontHandle, const char *FormatString,...) |
int | CreateFontToHandle (const char *FontName, int Size, int Thick, int FontType, int CharSet, int EdgeSize, int Italic, int DataIndex, int ID) |
変数 | |
static u8 | intrafont_init = 0 |
static DXP_FONTDATA | fontarray = {NULL,NULL,1.0f,DXP_FONT_COLOR_DARKGRAY,DXP_FONT_ALIGN_DEFAULT,-1} |
#define DXP_FONT_BASE_SIZE 22.627416997969522f |
#define DXP_FONT_SQRT_SIZE 1.4142135623730951f |
int CreateFontToHandle | ( | const char * | FontName, | |
int | Size, | |||
int | Thick, | |||
int | FontType, | |||
int | CharSet, | |||
int | EdgeSize, | |||
int | Italic, | |||
int | DataIndex, | |||
int | ID | |||
) |
int DeleteFont | ( | int | handle | ) |
int DrawFormatString | ( | int | x, | |
int | y, | |||
int | color, | |||
const char * | String, | |||
... | ||||
) |
int DrawFormatStringToHandle | ( | int | x, | |
int | y, | |||
int | Color, | |||
int | FontHandle, | |||
const char * | FormatString, | |||
... | ||||
) |
int DrawString | ( | int | x, | |
int | y, | |||
const char * | String, | |||
int | Color, | |||
int | EdgeColor | |||
) |
int DrawStringWithHandle | ( | int | x, | |
int | y, | |||
const char * | String, | |||
int | color, | |||
int | handle, | |||
int | EdgeColor | |||
) |
int EndString | ( | ) |
static DXP_FONTDATA* FontHandle2PrevPtr | ( | int | handle | ) | [static] |
static DXP_FONTDATA* FontHandle2Ptr | ( | int | handle | ) | [static] |
int GetDrawStringWidthWithHandle | ( | const char * | String, | |
int | StrLen, | |||
int | FontHandle | |||
) |
float GetDrawStringWidthWithHandleF | ( | const char * | String, | |
int | StrLen, | |||
int | FontHandle | |||
) |
int InitString | ( | ) |
int LoadFont | ( | const char * | font, | |
int | CharSet | |||
) |
int SetFontAlignment | ( | int | Position, | |
int | Width | |||
) |
int SetFontBackgroundColor | ( | int | Color | ) |
int SetFontSize | ( | int | FontSize | ) |
int SetFontSizeF | ( | float | FontSize | ) |
static void StringFinish | ( | GUCONTEXT_FORSTRING * | ptr | ) | [static] |
static void StringStart | ( | GUCONTEXT_FORSTRING * | ptr | ) | [static] |
DXP_FONTDATA fontarray = {NULL,NULL,1.0f,DXP_FONT_COLOR_DARKGRAY,DXP_FONT_ALIGN_DEFAULT,-1} [static] |
u8 intrafont_init = 0 [static] |