Changeset 9806 in orxonox.OLD for branches/new_class_id/src/world_entities
- Timestamp:
- Sep 24, 2006, 10:30:13 PM (18 years ago)
- Location:
- branches/new_class_id/src/world_entities/npcs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/npcs/attractor_mine.cc
r9757 r9806 66 66 67 67 this->shader = NULL; 68 if (likely(Shader::checkShaderAbility()))69 this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");68 //if (likely(Shader::checkShaderAbility())) 69 // this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag"); 70 70 71 71 this->randomRotAxis = VECTOR_RAND(1); … … 78 78 AttractorMine::~AttractorMine () 79 79 { 80 if (this->shader)81 Shader::unload(this->shader);82 80 } 83 84 81 85 82 void AttractorMine::loadParams(const TiXmlElement* root) -
branches/new_class_id/src/world_entities/npcs/generic_npc.cc
r9757 r9806 29 29 30 30 #include "loading/resource_manager.h" 31 #include "sound/resource_sound_buffer.h" 31 32 32 33 #include "bsp_entity.h" … … 88 89 this->toList(OM_GROUP_00); 89 90 90 this->soundBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/rain.wav", WAV);91 this->soundBuffer = OrxSound::ResourceSoundBuffer("sound/rain.wav"); 91 92 92 93 time = 30.0f; -
branches/new_class_id/src/world_entities/npcs/generic_npc.h
r9715 r9806 124 124 125 125 OrxSound::SoundSource soundSource; 126 OrxSound::SoundBuffer *soundBuffer;126 OrxSound::SoundBuffer soundBuffer; 127 127 float soundVolume; 128 128 -
branches/new_class_id/src/world_entities/npcs/npc_test.cc
r9716 r9806 48 48 49 49 this->shader = NULL; 50 if (likely(Shader::checkShaderAbility()))51 this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");50 // if (likely(Shader::checkShaderAbility())) 51 //this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag"); 52 52 53 53 this->randomRotAxis = VECTOR_RAND(1); … … 59 59 60 60 NPC2::~NPC2 () 61 { 62 if (this->shader) 63 Shader::unload(this->shader); 64 } 61 {} 65 62 66 63
Note: See TracChangeset
for help on using the changeset viewer.