SimpleNGL 1.0
Public Member Functions
Grid Class Reference

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 ( )

default ctor

Grid::Grid ( int  _w,
int  _h,
const float &  _spacing 
)

ctor with sizing info

Parameters:
[in]_wthe grid width
[in]_hthe grid height
[in]_spacingthe grid spacing between each point
Grid::~Grid ( )

the dtor


Member Function Documentation

void Grid::drawDeformed ( )

draw the deformed grid

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]

return the grid size

Imath::V3f* Grid::getVertsPtr ( ) [inline]

return a pointer to the original verts

void Grid::init ( bool  _terrain = false)

initialise grid

Parameters:
[in]_terrainbooleans indicating whether this grid is for terrains
void Grid::set ( int  _w,
int  _h 
) [inline]

set a new widht and height

Parameters:
[in]_wthe new width
[in]_hthe new height
void Grid::updateBuffers ( )

update the pos and normal buffers of deformed


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines