Changeset 9869 in orxonox.OLD for trunk/src/world_entities/environments/water.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/environments/water.cc
r9656 r9869 23 23 #include "material.h" 24 24 25 #include "util/loading/resource_manager.h" 26 #include "shader.h" 25 #include "resource_shader.h" 27 26 28 27 #include "skybox.h" … … 33 32 34 33 35 36 CREATE_FACTORY(Water, CL_WATER); 34 #include "class_id_DEPRECATED.h" 35 ObjectListDefinitionID(Water, CL_WATER); 36 CREATE_FACTORY(Water); 37 37 38 38 39 39 Water::Water(const TiXmlElement* root) 40 40 { 41 this-> setClassID(CL_WATER, "Water");41 this->registerObject(this, Water::_objectList); 42 42 this->toList(OM_ENVIRON); 43 43 … … 55 55 56 56 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"); 58 58 59 59 // To test the Wave equation … … 217 217 void Water::tick(float dt) 218 218 { 219 ObjectManager::EntityList entityList = State::getObjectManager()->get ObjectList(OM_GROUP_01_PROJ);219 ObjectManager::EntityList entityList = State::getObjectManager()->getEntityList(OM_GROUP_01_PROJ); 220 220 ObjectManager::EntityList::iterator entity = entityList.begin(); 221 221 while (entity != entityList.end())
Note: See TracChangeset
for help on using the changeset viewer.