Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2006, 10:53:34 PM (17 years ago)
Author:
nicolasc
Message:

bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/lbolt.cc

    r10044 r10046  
    5757  this->angle = 0;
    5858  this->rotationSpeed = 130;
    59 /*
     59
    6060  this->mat = new Material("lBolt");
    6161  //this->mat->setBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
     
    6565  this->mat->setDiffuseMap("lbolt.png",1);
    6666  dynamic_cast<StaticModel*>(this->getModel())->addMaterial(this->mat);
    67   dynamic_cast<StaticModel*>(this->getModel())->finalize();*/
     67  dynamic_cast<StaticModel*>(this->getModel())->finalize();
    6868}
    6969
     
    160160{
    161161  glPushAttrib(GL_ENABLE_BIT);
    162   glDisable(GL_LIGHTING);
     162  //glDisable(GL_LIGHTING);
    163163
    164164  glMatrixMode(GL_MODELVIEW);
     
    170170  this->getAbsDir().matrix (matrix);
    171171  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();
    173180  glPopMatrix();
    174181
Note: See TracChangeset for help on using the changeset viewer.