a class for constructing and drawing a textured grid with normals has a pointer for deformed verts also
More...
#include <Grid.h>
List of all members.
Public Member Functions |
| Grid () |
| default ctor
|
| Grid (int _w, int _h, const float &_spacing) |
| ctor with sizing info
|
| ~Grid () |
| the dtor
|
void | init (bool _terrain=false) |
| initialise grid
|
void | drawOriginal () |
| draw the un deformed grid
|
void | drawDeformed () |
| draw the deformed grid
|
void | updateBuffers () |
| update the pos and normal buffers of deformed
|
void | set (int _w, int _h) |
| set a new widht and height
|
int | getSize () const |
| return the grid size
|
Imath::V3f * | getDeformedVertsPtr () |
| return a pointer to the deformed verts
|
Imath::V3f * | getVertsPtr () |
| return a pointer to the original verts
|
Detailed Description
a class for constructing and drawing a textured grid with normals has a pointer for deformed verts also
Constructor & Destructor Documentation
Grid::Grid |
( |
int |
_w, |
|
|
int |
_h, |
|
|
const float & |
_spacing |
|
) |
| |
ctor with sizing info
- Parameters:
-
[in] | _w | the grid width |
[in] | _h | the grid height |
[in] | _spacing | the grid spacing between each point |
Member Function Documentation
void Grid::drawDeformed |
( |
| ) |
|
void Grid::drawOriginal |
( |
| ) |
|
draw the un deformed grid
Imath::V3f* Grid::getDeformedVertsPtr |
( |
| ) |
[inline] |
return a pointer to the deformed verts
int Grid::getSize |
( |
| ) |
const [inline] |
Imath::V3f* Grid::getVertsPtr |
( |
| ) |
[inline] |
return a pointer to the original verts
void Grid::init |
( |
bool |
_terrain = false | ) |
|
initialise grid
- Parameters:
-
[in] | _terrain | booleans indicating whether this grid is for terrains |
void Grid::set |
( |
int |
_w, |
|
|
int |
_h |
|
) |
| [inline] |
set a new widht and height
- Parameters:
-
[in] | _w | the new width |
[in] | _h | the new height |
void Grid::updateBuffers |
( |
| ) |
|
update the pos and normal buffers of deformed
The documentation for this class was generated from the following files: