Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 9, 2006, 12:05:57 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: added grid class

File:
1 copied

Legend:

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

    r6443 r6446  
    11/*!
    2  * @file proto_class.h
     2 * @file grid.h
    33 * @brief Definition of ...
    44*/
    55
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
     6#ifndef _GRID_H
     7#define _GRID_H
    88
    9 #include "base_object.h"
     9#include "vertex_array_model.h"
    1010
    1111// FORWARD DECLARATION
     
    1414
    1515//! A class for ...
    16 class ProtoClass : public BaseObject {
     16class Grid : public VertexArrayModel
     17{
    1718
    18  public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
     19public:
     20  Grid(float sizeX, float sizeY, unsigned int resolutionX, unsigned int resolutionY);
     21  virtual ~Grid();
    2122
     23  void setSizeX(float sizeX) { this->_sizeX = sizeX; };
     24  void setSizeY(float sizeY) { this->_sizeY = sizeY; };
    2225
    23  private:
     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; };
    2430
     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;
    2539};
    2640
    27 #endif /* _PROTO_CLASS_H */
     41#endif /* _GRID_H */
Note: See TracChangeset for help on using the changeset viewer.