Changeset 107 for code/trunk/src
- Timestamp:
- Oct 25, 2007, 11:45:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox.cc
r89 r107 32 32 SceneNode *lightNode; 33 33 34 class FrameListener : public ExampleFrameListener34 class OrxFrameListener : public ExampleFrameListener 35 35 { 36 36 public: 37 FrameListener(RenderWindow* win, Camera* cam, SceneManager *sceneMgr)37 OrxFrameListener(RenderWindow* win, Camera* cam, SceneManager *sceneMgr) 38 38 : ExampleFrameListener(win, cam, false, false) 39 39 { … … 83 83 // add tutorial code here: 84 84 // ... 85 mSceneMgr->setAmbientLight( ColourValue( 0.3, 0.3, 0.3 ) );85 //mSceneMgr->setAmbientLight( ColourValue( 0.3, 0.3, 0.3 ) ); 86 86 //Entity* head = mSceneMgr->createEntity("head", "ogrehead.mesh"); 87 87 88 88 //Entity* head2 = mSceneMgr->createEntity("head2", "ogrehead.mesh"); 89 89 90 SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode", Vector3( 0, 0, 0 ) );90 //ceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode", Vector3( 0, 0, 0 ) ); 91 91 //node->attachObject( head ); 92 92 93 SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode2", Vector3( 50, 0, 0 ) );93 //SceneNode *node2 = mSceneMgr->getRootSceneNode()->createChildSceneNode( "OgreHeadNode2", Vector3( 50, 0, 0 ) ); 94 94 //node2->attachObject( head2 ); 95 95 … … 116 116 { 117 117 // create frame listener 118 mFrameListener = new ExampleFrameListener(mWindow, mCamera, mSceneMgr);118 mFrameListener = new OrxFrameListener(mWindow, mCamera, mSceneMgr); 119 119 mRoot->addFrameListener(mFrameListener); 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.