Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9420 for code


Ignore:
Timestamp:
Oct 29, 2012, 4:16:17 PM (12 years ago)
Author:
davidsa
Message:

Added some documentation to orxonox::Scene

Location:
code/branches/shaders/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/shaders/src/orxonox/RenderQueueListener.cc

    r9419 r9420  
    3030/**
    3131  @file RenderQueueListener.cc
    32   @brief Definition of the RenderQueueListener class.
     32  @brief Implementation of the RenderQueueListener class.
    3333*/
    3434
  • code/branches/shaders/src/orxonox/Scene.cc

    r9407 r9420  
    2727 *
    2828 */
     29
     30/**
     31@file Scene.cc
     32@brief Implementation of Scene Class
     33*/
     34
    2935
    3036#include "Scene.h"
     
    5359{
    5460    CreateFactory(Scene);
    55 
     61   
     62    /**
     63    @brief
     64        Constructor, it sets common standard paramters for a scene depending on whether it will be rendered or not.
     65        It also makes sure we user our own render queue listener for rendering instead of the standard listener provided by Ogre
     66    */
    5667    Scene::Scene(BaseObject* creator) : BaseObject(creator), Synchronisable(creator)
    5768    {
  • code/branches/shaders/src/orxonox/Scene.h

    r6417 r9420  
    2828 */
    2929
     30/**
     31@file Scene.h
     32@brief Definition of Scene Class
     33*/
     34
    3035#ifndef _Scene_H__
    3136#define _Scene_H__
     
    4853    {
    4954        public:
     55            /**
     56            @brief
     57                This class holds a Scene which is a collection of all kinds of objects to be rendered in the same space,
     58                with the same physics and the same light properties. Objects can be anything from a light source, over non physical objects
     59                like Billboards to just plain Models with an attached Mesh
     60            */
    5061            Scene(BaseObject* creator);
    5162            virtual ~Scene();
     
    94105                { this->setShadow(this->bShadows_); }
    95106
    96             Ogre::SceneManager*      sceneManager_;
    97             Ogre::SceneNode*         rootSceneNode_;
     107            Ogre::SceneManager*      sceneManager_; //!< This is a pointer to the Ogre SceneManager we're using to render the Scene
     108            Ogre::SceneNode*         rootSceneNode_; //!< This is a pointer to the root node of the Scene tree
    98109
    99             std::string              skybox_;
    100             ColourValue              ambientLight_;
    101             std::list<BaseObject*>   objects_;
    102             bool                     bShadows_;
    103             float                    soundReferenceDistance_;
    104             Radar*                   radar_;
     110            std::string              skybox_; //!< This string holds information about the skybox we're using
     111            ColourValue              ambientLight_; //!< This variable holds the color value for the ambient light in our scene, usually black in space
     112            std::list<BaseObject*>   objects_; //!< This list holds all the objects created in our scene
     113            bool                     bShadows_; //!< Do we want shadows in our scene?
     114            float                    soundReferenceDistance_; //!< This holds a reference distance, which represents the distance between our scene and the listener
     115            Radar*                   radar_; //!< This is a pointer to a Radar object assigned with this scene
    105116
    106117
Note: See TracChangeset for help on using the changeset viewer.