Changeset 5684 for anuga_work/development/anugavis/src/anugavis.cc
- Timestamp:
- Aug 26, 2008, 10:50:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/anugavis/src/anugavis.cc
r5636 r5684 5 5 #include <algorithm> 6 6 #include <string> 7 #include <boost/bind.hpp> 7 8 #include <boost/shared_ptr.hpp> 8 9 #ifdef HAVE_GL_GL_H … … 21 22 #include "sww_file.hh" 22 23 24 using boost::bind; 23 25 using boost::shared_ptr; 24 26 using std::for_each; … … 91 93 static Uint32 lastframe; 92 94 bool more = true; 95 float light[4]; 93 96 94 97 if(ticks == 0) lastframe = ticks = SDL_GetTicks(); … … 102 105 this->paused = 1; 103 106 107 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 108 glMatrixMode(GL_MODELVIEW); 109 glLoadIdentity(); 110 gluLookAt(this->eye .x, this->eye .y, this->eye .z, 111 this->focus.x, this->focus.y, this->focus.z, 112 0, 0, 1); 113 light[0] = this->eye.x; 114 light[1] = this->eye.y; 115 light[2] = this->eye.z; 116 light[3] = 1.0; 117 glLightfv(GL_LIGHT0, GL_POSITION, light); 118 for_each(this->heights.begin(), 119 this->heights.end (), 120 bind(&HeightQuantity::draw, _1, this->frame)); 104 121 return false; 105 122 }
Note: See TracChangeset
for help on using the changeset viewer.