Changeset 460
- Timestamp:
- Dec 12, 2007, 1:18:46 AM (17 years ago)
- Location:
- code/branches/objecthierarchy/src
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/CMakeLists.txt
r454 r460 14 14 orxonox/core/SignalHandler.cc 15 15 orxonox/objects/BaseObject.cc 16 orxonox/objects/WorldEntity.cc 16 17 orxonox/objects/test1.cc 17 18 orxonox/objects/test2.cc … … 35 36 orxonox/core/SignalHandler.h 36 37 orxonox/objects/BaseObject.h 38 orxonox/objects/WorldEntity.h 37 39 orxonox/objects/Test.h 38 40 orxonox/objects/test1.h -
code/branches/objecthierarchy/src/orxonox/core/CoreIncludes.h
r457 r460 22 22 #include "OgreVector3.h" 23 23 #include "OgreColourValue.h" 24 #include "OgreQuaternion.h" 25 #include "OgreMatrix3.h" 24 26 25 27 … … 30 32 typedef Ogre::Vector3 Vector3; 31 33 typedef Ogre::ColourValue ColourValue; 34 typedef Ogre::Radian Radian; 35 typedef Ogre::Real Real; 36 typedef Ogre::Quaternion Quaternion; 37 typedef Ogre::Matrix3 Matrix3; 32 38 } 33 39 -
code/branches/objecthierarchy/src/orxonox/core/OrxonoxClass.h
r447 r460 103 103 104 104 /** @brief Sets the name of the object. @param name The name */ 105 inline v oid setName(const std::string& name) { this->name_ = name; }105 inline virtual void setName(const std::string& name) { this->name_ = name; } 106 106 107 107 /** @returns the name of the object. */ … … 109 109 110 110 /** @brief Sets the state of the objects activity. @param bActive True = active */ 111 inline v oid setActive(bool bActive) { this->bActive_ = bActive; }111 inline virtual void setActive(bool bActive) { this->bActive_ = bActive; } 112 112 113 113 /** @returns the state of the objects activity. */ … … 115 115 116 116 /** @brief Sets the state of the objects visibility. @param bVisible True = visible */ 117 inline v oid setVisible(bool bVisible) { this->bVisible_ = bVisible; }117 inline virtual void setVisible(bool bVisible) { this->bVisible_ = bVisible; } 118 118 119 119 /** @returns the state of the objects visibility. */ -
code/branches/objecthierarchy/src/orxonox/orxonox.cc
r457 r460 31 31 */ 32 32 33 #include <Ogre.h> 33 #include <OgreSceneNode.h> 34 #include <OgreSceneManager.h> 35 #include <OgreRoot.h> 36 #include <OgreFrameListener.h> 37 #include <OgreConfigFile.h> 38 #include <OgreTextureManager.h> 39 #include <OgreEntity.h> 40 #include <OgreRenderWindow.h> 41 34 42 #include <OIS/OIS.h> 35 43 #include <CEGUI/CEGUI.h> … … 46 54 #include "objects/Tickable.h" 47 55 #include "objects/Timer.h" 56 #include "objects/WorldEntity.h" 48 57 49 58 #include "objects/BaseObject.h" … … 633 642 std::cout << "4\n"; 634 643 644 std::cout << "Test 12\n"; 645 std::cout << "1\n"; 646 647 WorldEntity* test12_1 = new WorldEntity; 648 649 std::cout << sizeof(WorldEntity) << std::endl; 650 651 std::cout << "2\n"; 652 653 654 635 655 startRenderLoop(); 636 656 } … … 721 741 void setupScene() 722 742 { 723 Ogre::SceneManager *mgr= mRoot->createSceneManager(Ogre::ST_GENERIC, "Default SceneManager");724 Ogre::Camera *cam = mgr->createCamera("Camera");743 WorldEntity::sceneManager_s = mRoot->createSceneManager(Ogre::ST_GENERIC, "Default SceneManager"); 744 Ogre::Camera *cam = WorldEntity::sceneManager_s->createCamera("Camera"); 725 745 Ogre::Viewport *vp = mRoot->getAutoCreatedWindow()->addViewport(cam); 726 746 }
Note: See TracChangeset
for help on using the changeset viewer.