Example #1
0
CGameFont::CGameFont(LPCSTR section, u32 flags)
{
	fCurrentHeight				= 0.0f;
	uFlags						= flags;
	Initialize	(pSettings->r_string(section,"shader"),pSettings->r_string(section,"texture"));
	if (pSettings->line_exist(section,"size")){
		float sz = pSettings->r_float(section,"size");
		if (uFlags&fsDeviceIndependent)	SetHeightI(sz);
		else							SetHeight(sz);
	}
	if (pSettings->line_exist(section,"interval"))
		SetInterval(pSettings->r_fvector2(section,"interval"));
}
Example #2
0
CGameFont::CGameFont(LPCSTR section, u32 flags)
{
	pFontRender					= RenderFactory->CreateFontRender();
	fCurrentHeight				= 0.0f;
	fXStep						= 0.0f;
	fYStep						= 0.0f;
	uFlags						= flags;
	nNumChars					= 0x100;
	TCMap						= NULL;
	Initialize	(pSettings->r_string(section,"shader"),pSettings->r_string(section,"texture"));
	if (pSettings->line_exist(section,"size")){
		float sz = pSettings->r_float(section,"size");
		if (uFlags&fsDeviceIndependent)	SetHeightI(sz);
		else							SetHeight(sz);
	}
	if (pSettings->line_exist(section,"interval"))
		SetInterval(pSettings->r_fvector2(section,"interval"));
}