#include <DxLib.h>
#include "SystemMgr.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow ){
CSystemMgr* pSystemMgr = new CSystemMgr;
if( pSystemMgr->Initialize() ){
pSystemMgr->MainLoop();
}
pSystemMgr->Finalize();
delete pSystemMgr;
return 0;
}
#include <DxLib.h>
#include "SystemMgr.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow ){
CSystemMgr pSystemMgr;// = new CSystemMgr;
if( pSystemMgr.Initialize() )
{
pSystemMgr.MainLoop();
}
pSystemMgr.Finalize();
//delete pSystemMgr;
return 0;
}
ここで、ポインタで宣言するのはなぜなのでしょうか?パフォーマンス(処理速度)が速くなるのでしょうか?
理解に苦しんでいます。
他のコードはDLしていただけたら嬉しいです。