Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5994 in orxonox.OLD for trunk/src/lib/particles


Ignore:
Timestamp:
Dec 9, 2005, 10:43:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: much cleaner Model Loading unloading, model is now private to WorldEntity (not protected)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_system.cc

    r5944 r5994  
    383383      break;
    384384    case PARTICLE_MODEL:
    385       if (this->model)
    386         return this->count * this->model->getFaceCount();
     385      if (this->getModel(0))
     386        return this->count * this->getModel()->getFaceCount();
    387387      break;
    388388  }
     
    483483        GLfloat matrix[4][4];
    484484
    485         if (likely(this->model != NULL))
     485        if (likely(this->getModel() != NULL))
    486486          while (likely(drawPart != NULL))
    487487        {
     
    496496          glMultMatrixf((float*)matrix);
    497497
    498           this->model->draw();
     498          this->getModel()->draw();
    499499
    500500          glPopMatrix();
Note: See TracChangeset for help on using the changeset viewer.