Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8054 in orxonox.OLD for branches/atmospheric_engine/src


Ignore:
Timestamp:
Jun 1, 2006, 12:57:39 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.cc

    r8053 r8054  
    102102                -Animate it (for now move it along the sky)
    103103        */
    104   /*
     104
    105105        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    106106
     
    128128        glEnd();
    129129
    130   glPopMatrix();*/
     130  glPopMatrix();
    131131
    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;
    156132}
    157133
Note: See TracChangeset for help on using the changeset viewer.