1 Star 0 Fork 121

blog/kbengine

forked from likecg/kbengine 
Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
OgreApplication.h 1.40 KB
Copy Edit Raw Blame History
liquidx authored 2013-08-15 10:48 +08:00 . 目录结构调整
#ifndef __OgreApplication_h_
#define __OgreApplication_h_
#include "BaseApplication.h"
#include <Terrain/OgreTerrain.h>
#include <Terrain/OgreTerrainGroup.h>
#include <OgreImage.h>
#include "client_lib/event.hpp"
class DotSceneLoader;
class Space;
namespace Forests
{
class PagedGeometry;
class GrassLoader;
class GrassLayer;
}
class OgreApplication : public BaseApplication, public Ogre::Singleton<OgreApplication>, public KBEngine::EventHandle
{
public:
OgreApplication(void);
virtual ~OgreApplication(void);
virtual void go(void);
void setCurrCameraMan(OgreBites::SdkCameraMan* pCameraMan){ mCameraMan = pCameraMan; }
virtual void buttonHit(OgreBites::Button* button);
void kbengine_onEvent(const KBEngine::EventData* lpEventData);
void changeSpace(Space* space);
protected:
virtual bool setup();
virtual void setupResources();
virtual void createScene(void){}
virtual bool keyPressed(const OIS::KeyEvent &arg);
virtual bool keyReleased(const OIS::KeyEvent &arg);
virtual bool mouseMoved( const OIS::MouseEvent &arg );
virtual bool mousePressed( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
virtual bool mouseReleased( const OIS::MouseEvent &arg, OIS::MouseButtonID id );
virtual bool frameRenderingQueued(const Ogre::FrameEvent& evt);
private:
std::queue< std::tr1::shared_ptr<const KBEngine::EventData> > events_;
};
#endif // #ifndef __OgreApplication_h_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blog/kbengine.git
git@gitee.com:blog/kbengine.git
blog
kbengine
kbengine
0.1.1

Search