Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7692 in orxonox.OLD for branches


Ignore:
Timestamp:
May 18, 2006, 3:51:16 PM (19 years ago)
Author:
patrick
Message:

water: added the reflection list to the object list. temporary. bensch will decide if this stays here…

Location:
branches/water/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/water/src/story_entities/game_world.cc

    r7690 r7692  
    471471
    472472
     473
     474/**
     475 * reflection rendering for water surfaces
     476 */
    473477void GameWorld::renderPassReflection()
    474478{
    475 
    476479  const std::list<BaseObject*>* reflectedWaters;
    477480  MappedWater* mw;
     
    498501}
    499502
     503
     504/**
     505 *  refraction rendering for water surfaces
     506 */
    500507void GameWorld::renderPassRefraction()
    501508{}
    502509
     510
     511/**
     512 *  this render pass renders the whole wolrd
     513 */
    503514void GameWorld::renderPassAll()
    504515{
  • branches/water/src/util/object_manager.cc

    r7370 r7692  
    6464    while(!this->objectLists[i].empty())
    6565      delete this->objectLists[i].front();
     66
     67  // delete reflectin list
     68  while( !this->reflectionList.empty())
     69    delete this->reflectionList.front();
    6670}
    6771
  • branches/water/src/util/object_manager.h

    r7686 r7692  
    1919  OM_ENVIRON,
    2020  OM_COMMON,
    21 
    22   OM_REFLECTION,                            //!< list of all object that need to be drawn in the reflection image
    2321
    2422  OM_GROUP_00,
     
    9694  static const char* OMListToString(OM_LIST omList);
    9795
     96
     97  void toReflectionList( WorldEntity* entity) { this->reflectionList.push_back(entity); }
     98  /** @returns the list of all reflected objects in the world */
     99  EntityList& getReflectionList() { return this->reflectionList; }
     100  /** @returns the static list of all reflected objects in the world */
     101  const EntityList& getReflectionList() const { return this->reflectionList; }
     102
     103
     104
     105
    98106private:
    99107  const std::list<BaseObject>*            pNodeList;                //!< The List of PNodes.
     
    102110
    103111  static const char*                      objectManagerListNames[]; //!< Names of all the lists
     112
     113  EntityList                              reflectionList;           //!< A list of all reflected objects in the world
    104114};
    105115
Note: See TracChangeset for help on using the changeset viewer.