Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6821 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 29, 2006, 12:57:24 AM (19 years ago)
Author:
bensch
Message:

trunk: HyperBlaster

File:
1 edited

Legend:

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

    r6653 r6821  
    9191void SparkParticles::draw() const
    9292{
    93   glPushAttrib(GL_ENABLE_BIT);
    9493
    9594  Particle* drawPart = particles;
    9695
    9796  glDepthMask(GL_FALSE);
     97  glPushAttrib(GL_ENABLE_BIT);
    9898
    9999  glDisable(GL_LIGHTING);
     100  glDisable(GL_TEXTURE_2D);
     101
    100102  glEnable(GL_LINE_SMOOTH);
    101103  glEnable(GL_BLEND);
    102104  glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA);
    103105
     106  glLineWidth(2.0);
    104107  glBegin(GL_LINES);
    105108  while (likely(drawPart != NULL))
    106109  {
     110  //    printf("%f %f %f %f\n", drawPart->color[0], drawPart->color[1], drawPart->color[2], drawPart->color[3]);
    107111    glColor4fv(drawPart->color);
    108112    glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
Note: See TracChangeset for help on using the changeset viewer.