Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 1, 2006, 12:14:30 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine

File:
1 edited

Legend:

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

    r8052 r8053  
    2424#include "material.h"
    2525#include <math.h>
     26#include "material.h"
    2627
    2728#include "parser/tinyxml/tinyxml.h"
     
    101102                -Animate it (for now move it along the sky)
    102103        */
    103 
     104  /*
    104105        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    105106
     
    127128        glEnd();
    128129
    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;
    130156}
    131157
Note: See TracChangeset for help on using the changeset viewer.