- 2
- 0
- 约6.65千字
- 约 7页
- 2017-01-23 发布于北京
- 举报
天龙八部制作教程及源码第一辑
一步一步来吧...
把OGRE嵌入到MFC里面,并实现了OIS缓冲输入和鼠标显示,看图:
具体实现方法:
一 最好抛弃示例框架,实现一个自己的框架,因为有些东西需要修改,有些东西要自己实现,我自己写了一个框架demo来嵌入MFC,看简洁不少
// 我的帧监听类class MyFrameListener : public FrameListener, public OIS::MouseListener, public OIS::KeyListener{public:
MyFrameListener(OgreDemo* app, HWND hMainWnd); ~MyFrameListener(); bool frameStarted(const FrameEvent evt);
bool mouseMoved(const OIS::MouseEvent e); bool mousePressed(const OIS::MouseEvent e, OIS::MouseButtonID id); bool mouseReleased(const OIS::MouseEvent e, OIS::MouseButtonID id); bool keyPressed
原创力文档

文档评论(0)