#ifndef _engineapp_h_
#define _engineapp_h_
class EngineApp : public Win32App {
private:
TRef<Engine> m_pengine;
TRef<Modeler> m_pmodeler;
TRef<IPopupContainer> m_ppopupContainer;
TRef<MouseInputStream> m_pmouse;
void ParseCommandLine(
const ZString& strCommandLine,
bool& bSoftwareOnly,
bool& bPrimaryOnly,
DWORD& dwBPP
);
public:
Engine* GetEngine() { return m_pengine; }
Modeler* GetModeler() { return m_pmodeler; }
IPopupContainer* GetPopupContainer() { return m_ppopupContainer; }
void SetMouse(MouseInputStream* pmouse);
HRESULT Initialize(const ZString& strCommandLine);
void Terminate();
int OnException(DWORD code, ExceptionData* pdata);
#ifdef _DEBUG
bool OnAssert(const char* psz, const char* pszFile, int line, const char* pszModule);
#endif
};
#endif