Changeset 4330 in orxonox.OLD for orxonox/branches/physics/src/lib
- Timestamp:
- May 27, 2005, 12:31:47 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4293 r4330 115 115 this->particleType = particleType; 116 116 this->dialectCount = count; 117 if (glID != NULL) 118 delete glID; 119 120 glID = new GLuint[count]; 121 for (int i = 0; i< count; i++) 122 glID[i] = 0; 123 124 glID[0] = glGenLists(count); 125 126 material = new Material("transperencyMap"); 127 material->setDiffuseMap("pictures/radialTransparency.png"); 128 // material->setTransparency(.5); 129 130 glNewList(glID[0], GL_COMPILE); 131 glBegin(GL_TRIANGLE_STRIP); 132 glTexCoord2f(1, 1); 133 glVertex3f(0.0, .5, .5); 134 glTexCoord2f(1, 0); 135 glVertex3f(0.0, -.5, .5); 136 glTexCoord2f(0, 1); 137 glVertex3f(0.0, .5, -.5); 138 glTexCoord2f(0, 0); 139 glVertex3f(0.0, -.5, -.5); 140 glEnd(); 141 glEndList(); 117 // if (glID != NULL) 118 // delete glID; 119 120 // glID = new GLuint[count]; 121 // for (int i = 0; i< count; i++) 122 // glID[i] = 0; 123 124 // glID[0] = glGenLists(count); 125 if (material) 126 delete material; 127 material = NULL; 128 129 if (particleType == PARTICLE_SPRITE) 130 { 131 material = new Material("transperencyMap"); 132 material->setDiffuseMap("pictures/radialTransparency.png"); 133 // material->setTransparency(.5); 134 } 142 135 } 143 136
Note: See TracChangeset
for help on using the changeset viewer.