Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 3, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/environments/water.cc

    r9656 r9869  
    2323#include "material.h"
    2424
    25 #include "util/loading/resource_manager.h"
    26 #include "shader.h"
     25#include "resource_shader.h"
    2726
    2827#include "skybox.h"
     
    3332
    3433
    35 
    36 CREATE_FACTORY(Water, CL_WATER);
     34#include "class_id_DEPRECATED.h"
     35ObjectListDefinitionID(Water, CL_WATER);
     36CREATE_FACTORY(Water);
    3737
    3838
    3939Water::Water(const TiXmlElement* root)
    4040{
    41   this->setClassID(CL_WATER, "Water");
     41  this->registerObject(this, Water::_objectList);
    4242  this->toList(OM_ENVIRON);
    4343
     
    5555
    5656  this->rebuildGrid();
    57   this->waterShader = (Shader*)ResourceManager::getInstance()->load("shaders/water.vert", SHADER, RP_GAME, "shaders/water.frag");
     57  this->waterShader = ResourceShader("shaders/water.vert", "shaders/water.frag");
    5858
    5959  // To test the Wave equation
     
    217217void Water::tick(float dt)
    218218{
    219   ObjectManager::EntityList entityList = State::getObjectManager()->getObjectList(OM_GROUP_01_PROJ);
     219  ObjectManager::EntityList entityList = State::getObjectManager()->getEntityList(OM_GROUP_01_PROJ);
    220220  ObjectManager::EntityList::iterator entity = entityList.begin();
    221221  while (entity != entityList.end())
Note: See TracChangeset for help on using the changeset viewer.