Changeset 6821 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jan 29, 2006, 12:57:24 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/spark_particles.cc
r6653 r6821 91 91 void SparkParticles::draw() const 92 92 { 93 glPushAttrib(GL_ENABLE_BIT);94 93 95 94 Particle* drawPart = particles; 96 95 97 96 glDepthMask(GL_FALSE); 97 glPushAttrib(GL_ENABLE_BIT); 98 98 99 99 glDisable(GL_LIGHTING); 100 glDisable(GL_TEXTURE_2D); 101 100 102 glEnable(GL_LINE_SMOOTH); 101 103 glEnable(GL_BLEND); 102 104 glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA); 103 105 106 glLineWidth(2.0); 104 107 glBegin(GL_LINES); 105 108 while (likely(drawPart != NULL)) 106 109 { 110 // printf("%f %f %f %f\n", drawPart->color[0], drawPart->color[1], drawPart->color[2], drawPart->color[3]); 107 111 glColor4fv(drawPart->color); 108 112 glVertex3f(drawPart->position.x, drawPart->position.y, drawPart->position.z);
Note: See TracChangeset
for help on using the changeset viewer.