Changeset 8054 in orxonox.OLD for branches/atmospheric_engine/src
- Timestamp:
- Jun 1, 2006, 12:57:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc
r8053 r8054 102 102 -Animate it (for now move it along the sky) 103 103 */ 104 /* 104 105 105 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 106 106 … … 128 128 glEnd(); 129 129 130 glPopMatrix(); */130 glPopMatrix(); 131 131 132 Material* material;133 material = new Material();134 material->setDiffuseMap("maps/lightning_bolt.png");135 136 glPushMatrix();137 glTranslatef (0,138 0,139 0);140 141 float width = 10;142 float height = 10;143 144 material->select();145 //PRINTF(0)("draw\n");146 glBegin(GL_QUADS);147 glTexCoord2f(1.0f, 1.0f); glVertex3f(-width/2, -height/2, 0.0f);148 glTexCoord2f(0.0f, 1.0f); glVertex3f( width/2, -height/2, 0.0f);149 glTexCoord2f(0.0f, 0.0f); glVertex3f( width/2, height/2, 0.0f);150 glTexCoord2f(1.0f, 0.0f); glVertex3f(-width/2, height/2, 0.0f);151 glEnd();152 153 glPopMatrix();154 155 delete material;156 132 } 157 133
Note: See TracChangeset
for help on using the changeset viewer.