Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6454 in orxonox.OLD for trunk/src/lib/graphics/importer/grid.h


Ignore:
Timestamp:
Jan 9, 2006, 11:20:37 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: changing the height of the Grid should work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/grid.h

    r6446 r6454  
    2121  virtual ~Grid();
    2222
    23   void setSizeX(float sizeX) { this->_sizeX = sizeX; };
    24   void setSizeY(float sizeY) { this->_sizeY = sizeY; };
    25 
    2623  float sizeX() const { return this->_sizeX; };
    2724  float sizeY() const { return this->_sizeY; };
     
    2926  unsigned int columns() const { return this->_columns; };
    3027
    31   float& height(unsigned int row, unsigned int column);
     28  float& height(unsigned int row, unsigned int column) { return this->vertex(row*_columns + row).y;};
    3229
    3330private:
Note: See TracChangeset for help on using the changeset viewer.