Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6522 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 18, 2006, 2:20:13 AM (19 years ago)
Author:
bensch
Message:

trunk: switch to WireFrame with
Shell → GraphicsEngine wireframe

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r6441 r6522  
    3636#include "texture.h"
    3737
     38#include "shell_command.h"
     39
    3840#ifdef __WIN32__
    3941 #include "class_list.h"
     
    4143#endif
    4244using namespace std;
     45
     46SHELL_COMMAND(wireframe, GraphicsEngine, wireframe);
    4347
    4448/**
     
    468472}
    469473
     474void GraphicsEngine::wireframe()
     475{
     476  glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
     477}
     478
    470479/**
    471480 *  stores the GL_matrices
  • trunk/src/lib/graphics/graphics_engine.h

    r6142 r6522  
    6060    static void enter2DMode();
    6161    static void leave2DMode();
     62
     63    void wireframe();
    6264
    6365    static void storeMatrices();
  • trunk/src/world_entities/environments/water.cc

    r6519 r6522  
    4646  this->velocities = NULL;
    4747  this->viscosity = 5;
    48   this->cohesion = .00000001;
     48  this->cohesion = .0000000001;
    4949
    5050  if (root != NULL)
     
    157157          4 * this->grid->height(i, j);
    158158      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
    162163  for(j = 1; j < this->grid->rows() - 1; j++) {
    163164    for(i = 1; i < this->grid->columns() - 1; i++) {
    164165      this->grid->height(i, j) += dt * this->velocities[i][j];
    165166    }
    166   }
     167  }*/
    167168  // bound
    168169//   unsigned int w = this->grid->columns - 1;
Note: See TracChangeset for help on using the changeset viewer.