Changeset 10046 in orxonox.OLD for branches/playability/src/world_entities/projectiles
- Timestamp:
- Dec 12, 2006, 10:53:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/lbolt.cc
r10044 r10046 57 57 this->angle = 0; 58 58 this->rotationSpeed = 130; 59 /* 59 60 60 this->mat = new Material("lBolt"); 61 61 //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); … … 65 65 this->mat->setDiffuseMap("lbolt.png",1); 66 66 dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat); 67 dynamic_cast<StaticModel*>(this->getModel())->finalize(); */67 dynamic_cast<StaticModel*>(this->getModel())->finalize(); 68 68 } 69 69 … … 160 160 { 161 161 glPushAttrib(GL_ENABLE_BIT); 162 glDisable(GL_LIGHTING);162 //glDisable(GL_LIGHTING); 163 163 164 164 glMatrixMode(GL_MODELVIEW); … … 170 170 this->getAbsDir().matrix (matrix); 171 171 glMultMatrixf((float*)matrix); 172 this->getModel()->draw(); 172 //this->getModel()->draw(); 173 174 this->mat->select(); 175 dynamic_cast<StaticModel*>(this->getModel())->draw(); 176 this->mat->select(); 177 dynamic_cast<StaticModel*>(this->getModel())->draw(); 178 this->mat->unselect(); 179 this->mat->unselect(); 173 180 glPopMatrix(); 174 181
Note: See TracChangeset
for help on using the changeset viewer.