Changeset 5323 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 8, 2005, 5:27:22 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npc2.cc
r5313 r5323 32 32 33 33 this->loadModelWithScale("models/ships/bolido.obj", 3); 34 this->shader = new Shader("toon.vert", "toon.frag"); 35 this->shader->activateShader(); 36 //exit(-1); 34 this->shader = Shader::getShader("toon.vert", "toon.frag"); 37 35 38 36 this->obj = gluNewQuadric(); … … 44 42 NPC2::~NPC2 () 45 43 { 46 delete this->shader;44 Shader::unload(this->shader); 47 45 gluDeleteQuadric(this->obj); 48 49 46 } 50 47 … … 87 84 glMultMatrixf((float*)matrix); 88 85 89 shader->activateShader(); 86 if (this->shader != NULL && this->shader != Shader::getActiveShader()) 87 { 88 shader->activateShader(); 89 } 90 90 gluSphere(this->obj, 3, 10, 10); 91 91 //shader->deactivateShader();
Note: See TracChangeset
for help on using the changeset viewer.