- Timestamp:
- Jan 18, 2006, 2:20:13 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r6441 r6522 36 36 #include "texture.h" 37 37 38 #include "shell_command.h" 39 38 40 #ifdef __WIN32__ 39 41 #include "class_list.h" … … 41 43 #endif 42 44 using namespace std; 45 46 SHELL_COMMAND(wireframe, GraphicsEngine, wireframe); 43 47 44 48 /** … … 468 472 } 469 473 474 void GraphicsEngine::wireframe() 475 { 476 glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); 477 } 478 470 479 /** 471 480 * stores the GL_matrices -
trunk/src/lib/graphics/graphics_engine.h
r6142 r6522 60 60 static void enter2DMode(); 61 61 static void leave2DMode(); 62 63 void wireframe(); 62 64 63 65 static void storeMatrices(); -
trunk/src/world_entities/environments/water.cc
r6519 r6522 46 46 this->velocities = NULL; 47 47 this->viscosity = 5; 48 this->cohesion = .0000000 1;48 this->cohesion = .0000000001; 49 49 50 50 if (root != NULL) … … 157 157 4 * this->grid->height(i, j); 158 158 this->velocities[i][j] += dt * this->viscosity * this->viscosity * u / this->height; 159 } 160 } 161 // advect 159 this->grid->height(i, j) += dt * this->velocities[i][j]; 160 } 161 } 162 /* // advect 162 163 for(j = 1; j < this->grid->rows() - 1; j++) { 163 164 for(i = 1; i < this->grid->columns() - 1; i++) { 164 165 this->grid->height(i, j) += dt * this->velocities[i][j]; 165 166 } 166 } 167 }*/ 167 168 // bound 168 169 // unsigned int w = this->grid->columns - 1;
Note: See TracChangeset
for help on using the changeset viewer.