摘要: 1.定义类继承自CBCGPDockingControlBar和Ogre::LogListener class COutputBar : public CBCGPDockingControlBar, public Ogre::LogListener 2.重载Ogre::LogListener的messageLogged方法 CListBox m_wndList; void COutputBar::m... 阅读全文
posted @ 2009-02-12 16:30 邓炜 阅读(605) 评论(0) 推荐(0)
摘要: 在BCG中使用ORGE渲染和在MFC中是差不多的。 1.在CApp的构造和析构函数中new和delete ORGE。 2.在第一次进入CView的OnDraw函数时执行ORGE setup,并且设置Timer。 3.CView的OnDraw函数中执行ORGE的update函数,同时在Timer的回调函数中OGRE的update函数。 阅读全文
posted @ 2009-02-12 12:06 邓炜 阅读(256) 评论(0) 推荐(0)
摘要: 在CApp::InitInstance()函数中: // Standard initialization // If you are not using these features and wish to reduce the size // of your final executable, you should remove from the following // the sp... 阅读全文
posted @ 2009-02-12 11:25 邓炜 阅读(552) 评论(0) 推荐(0)