Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2007, 7:48:48 PM (16 years ago)
Author:
rgrieder
Message:

RunManager.cpp completely commented in Doxygen style.
One or two comments are yet inappropriate since a few changes to the code have to be made anyway. coming soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto/src/OrxonoxScene.cpp

    r123 r141  
     1/*
     2 *   ORXONOX - the hottest 3D action shooter ever to exist
     3 *
     4 *
     5 *   License notice:
     6 *
     7 *   This program is free software: you can redistribute it and/or modify
     8 *   it under the terms of the GNU General Public License as published by
     9 *   the Free Software Foundation, either version 3 of the License, or
     10 *   (at your option) any later version.
     11 *
     12 *   This program is distributed in the hope that it will be useful,
     13 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 *   GNU General Public License for more details.
     16 *
     17 *   You should have received a copy of the GNU General Public License
     18 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19 *
     20 *
     21 *   Author:
     22 *      Reto Grieder
     23 *   Co-authors:
     24 *      ...
     25 *
     26 */
     27
    128#include "OrxonoxScene.h"
    229
     
    2653
    2754
    28 /// method where you can perform resource group loading
    29 /// Must at least do ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
     55// method where you can perform resource group loading
     56// Must at least do
     57// ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
    3058void OrxonoxScene::loadResources(void)
    3159{
     
    4472
    4573        //create a scene node to attach the head to
    46         SceneNode *node = mSceneMgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode",
    47                 Vector3(0,0,0));
     74        SceneNode *node = mSceneMgr->getRootSceneNode()
     75        ->createChildSceneNode("OgreHeadNode", Vector3(0,0,0));
    4876        //attach the ogre head
    4977        node->attachObject(head);
    5078
    5179        // set up skybox
    52         mSceneMgr->setSkyBox(true, "Examples/SpaceSkyBox");
     80        mSceneMgr->setSkyBox(true, "Examples/SceneSkyBox2");
    5381
    5482        // set up one mLight source
     
    6492        bbs->setMaterialName("Examples/Flare");
    6593
    66         lightNode = mSceneMgr->getRootSceneNode()->createChildSceneNode("LightNode",
    67                 Vector3(0, 100, 0));
     94        lightNode = mSceneMgr->getRootSceneNode()
     95        ->createChildSceneNode("LightNode", Vector3(0, 100, 0));
    6896
    6997        lightNode->attachObject(bbs);
     
    82110        mLight->setSpecularColour(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2));
    83111
    84         bbs->getBillboard(0)->setColour(ColourValue(sin(1*t), sin(1*t + 2.09), sin(1*t + 2.09*2)));
     112        bbs->getBillboard(0)->setColour(ColourValue(sin(1*t),
     113        sin(1*t + 2.09), sin(1*t + 2.09*2)));
    85114}
Note: See TracChangeset for help on using the changeset viewer.