Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/importer/grid.h @ 6448

Last change on this file since 6448 was 6446, checked in by bensch, 19 years ago

orxonox/trunk: added grid class

File size: 845 bytes
Line 
1/*!
2 * @file grid.h
3 * @brief Definition of ...
4*/
5
6#ifndef _GRID_H
7#define _GRID_H
8
9#include "vertex_array_model.h"
10
11// FORWARD DECLARATION
12
13
14
15//! A class for ...
16class Grid : public VertexArrayModel
17{
18
19public:
20  Grid(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY);
21  virtual ~Grid();
22
23  void setSizeX(float sizeX) { this->_sizeX = sizeX; };
24  void setSizeY(float sizeY) { this->_sizeY = sizeY; };
25
26  float sizeX() const { return this->_sizeX; };
27  float sizeY() const { return this->_sizeY; };
28  unsigned int rows() const { return this->_rows; };
29  unsigned int columns() const { return this->_columns; };
30
31  float& height(unsigned int row, unsigned int column);
32
33private:
34  float             _sizeX;
35  float             _sizeY;
36
37  unsigned int      _rows;
38  unsigned int      _columns;
39};
40
41#endif /* _GRID_H */
Note: See TracBrowser for help on using the repository browser.