Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 482


Ignore:
Timestamp:
Dec 12, 2007, 8:19:40 PM (16 years ago)
Author:
nicolape
Message:

Added example implementation of world entity

Location:
code/branches/FICN/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/CMakeLists.txt

    r475 r482  
    4343  network
    4444  core
    45   objects
     45  #objects
    4646)
    4747
     
    5151  network
    5252  core
    53   objects
     53  #objects
    5454)
    5555
     
    6060  network
    6161  core
    62   objects
     62  #objects
    6363)
    6464TARGET_LINK_LIBRARIES( server
     
    6666  network
    6767  core
    68   objects
     68  #objects
    6969)
    7070
  • code/branches/FICN/src/orxonox/CMakeLists.txt

    r480 r482  
    1818)
    1919
     20ADD_LIBRARY(orxonox SHARED ${ORXONOX_SRC_FILES})
     21
    2022ADD_EXECUTABLE(../../bin/main ${ORXONOX_SRC_FILES})
    2123
  • code/branches/FICN/src/orxonox/objects/CMakeLists.txt

    r480 r482  
    1212TARGET_LINK_LIBRARIES( objects
    1313  xml
     14  orxonox
    1415)
  • code/branches/FICN/src/orxonox/objects/test1.cc

    r480 r482  
    33#include "test3.h"
    44#include "../../tinyxml/tinyxml.h"
     5#include "../orxonox.h"
     6#include <OgreSceneManager.h>
    57
    68namespace orxonox
     
    7072    void Test1::loadParams(TiXmlElement* xmlElem)
    7173    {
     74        Ogre::SceneManager* mgr = orxonox::Orxonox::getSingleton()->getSceneManager();
     75       
     76        mgr->setAmbientLight(ColourValue(1,0,0));
     77       
     78       
     79       
    7280        std::cout<< xmlElem->GetText()<<std::endl;
     81       
     82       
    7383    }
    7484}
  • code/branches/FICN/src/orxonox/orxonox.cc

    r480 r482  
    360360    Viewport *vp = ogre_->getRoot()->getAutoCreatedWindow()->addViewport(cam);
    361361
    362 
    363     mgr->setAmbientLight(ColourValue(1,1,1));
     362   
    364363    Entity* head = mgr->createEntity("head", "razor.mesh");
    365364    SceneNode *node = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode", Vector3(0,0,0));
     
    387386    steering->addNode(node);
    388387
     388
    389389  }
    390390
Note: See TracChangeset for help on using the changeset viewer.