#include "ECTrainer.h"
#include "ECTrainerGUI.h"
#include "SceneCamera.h"
// コンストラクタ
ECTrainer::ECTrainer()
: _pGui(NULL)
, _pSceneCam(NULL)
, _Running(true)
{
_pGui = new ECTrainerGUI(this);
_pSceneCam = new SceneCamera(this);
}
// デストラクタ
ECTrainer::~ECTrainer() {
if (_pGui) delete _pGui;
if (_pSceneCam) delete _pSceneCam;
}
// 初期化
bool ECTrainer::Init() {
if (!_pGui->Init()) return false;
return true;
}
// メインループ
bool ECTrainer::Loop() {
_pGui->MainLoop();
return true;
}