Exemple #1
0
void App::Init()
{
	zprint("%s %s", __DATE__, __TIME__);
	AppBase().Init();
    RECT r;
	SizeWindow().Get(mainWindow, r);
	HWND h = WindowTemplate(&mainWindow, L"MainWindow", r.left, r.top, r.right, r.bottom);
	ShowWindow(h, SW_SHOWNORMAL);
}
SpriteFXAnimator::SpriteFXAnimator(const PtrGC<Sprite>& sprite, TextureAnimationSet& animSet) :
	  TextureAnimator(animSet),
	  m_spriteFX(new SpriteFXPlayer(sprite, AppBase().spriteFX()))
{
};
// onExit
void DlgFatal::onExit()
{
	AppBase().exit();
}
PathResource::PathResource(const std::string& stringRep) :
	Path(stringRep, AppBase().filesystem())
{
}