Changeset 9869 in orxonox.OLD for trunk/src/world_entities/npcs/npc_test.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc_test.cc
r9235 r9869 30 30 #include "effects/explosion.h" 31 31 32 CREATE_FACTORY(NPC2, CL_NPC_TEST2); 33 32 #include "class_id_DEPRECATED.h" 33 ObjectListDefinitionID(NPC2, CL_NPC_TEST2); 34 CREATE_FACTORY(NPC2); 34 35 35 36 NPC2::NPC2(const TiXmlElement* root) 36 37 : NPC(NULL) 37 38 { 38 this-> setClassID(CL_NPC_TEST2, "NPC2");39 this->registerObject(this, NPC2::_objectList); 39 40 40 41 if ((float)rand()/RAND_MAX > .5f) … … 47 48 48 49 this->shader = NULL; 49 if (likely(Shader::checkShaderAbility()))50 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"); 51 52 52 53 this->randomRotAxis = VECTOR_RAND(1); … … 58 59 59 60 NPC2::~NPC2 () 60 { 61 if (this->shader) 62 Shader::unload(this->shader); 63 } 61 {} 64 62 65 63
Note: See TracChangeset
for help on using the changeset viewer.