Esempio n. 1
0
inline const CFont& CApp::DefaultFont()
{
	// Create, if first call.
	if (m_DefaultFont.Handle() == NULL)
		m_DefaultFont.Create(reinterpret_cast<HFONT>(::GetStockObject(DEFAULT_GUI_FONT)));

	return m_DefaultFont;
}
Esempio n. 2
0
void CAiArena::Create (void)
{
    ASSERT (m_pArena != NULL);

#if defined(DEBUG_DRAW_SOFTWALL_BLOCKS) || defined (DEBUG_DRAW_BURNWALLDANGER_BLOCKS) || defined (DEBUG_DRAW_BOMB_OWNERS)
    m_Font.SetDisplay(m_pDisplay);
                    
    m_Font.Create ();
    m_Font.SetShadow (true);
    m_Font.SetShadowColor (FONTCOLOR_BLACK);
    m_Font.SetShadowDirection (SHADOWDIRECTION_DOWNRIGHT);
    m_Font.SetSpriteLayer (800);
    m_Font.SetTextColor(FONTCOLOR_WHITE);
#endif
}