Changeset 8053 in orxonox.OLD for branches/atmospheric_engine/src
- Timestamp:
- Jun 1, 2006, 12:14:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc
r8052 r8053 24 24 #include "material.h" 25 25 #include <math.h> 26 #include "material.h" 26 27 27 28 #include "parser/tinyxml/tinyxml.h" … … 101 102 -Animate it (for now move it along the sky) 102 103 */ 103 104 /* 104 105 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 105 106 … … 127 128 glEnd(); 128 129 129 glPopMatrix(); 130 glPopMatrix();*/ 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; 130 156 } 131 157
Note: See TracChangeset
for help on using the changeset viewer.