Demo.h
上传用户:sz83729876
上传日期:2013-03-07
资源大小:4140k
文件大小:1k
- #ifndef _DEMO_H_
- #define _DEMO_H_
- #include "Base.h"
- #include "Sound.h"
- class CParameters
- {
- public:
- // window parameters
- int m_iWidth;
- int m_iHeight;
- int m_iDepth;
- bool m_bWindowed;
- // demo parameters
- bool m_bLooped;
- bool m_bSound;
- };
- class CApp : public CBaseApp
- {
- private:
- CParameters m_parApp;
- public:
- bool AppInitialize();
- bool AppCleanup();
- bool AppRender();
- void SetParameters( CParameters par )
- { memcpy( &m_parApp, &par, sizeof(CParameters) ); }
- CApp();
- ~CApp();
- };
- #endif