This library provides basic heightfield support.
More...
|
Classes | |
| class | hfield::Heightfield |
| A logical heightfield. More... | |
Functions | |
| virtual void | hfield::Heightfield::dump (IN const char *txt) const =0 throw () |
| virtual int | hfield::Heightfield::getWidth (void) const =0 throw () |
| virtual int | hfield::Heightfield::getLength (void) const =0 throw () |
| virtual float | hfield::Heightfield::getXZScale (void) const =0 throw () |
| virtual float | hfield::Heightfield::getYScale (void) const =0 throw () |
| virtual short | hfield::Heightfield::getMinHeight (void) const =0 throw () |
| virtual short | hfield::Heightfield::getMaxHeight (void) const =0 throw () |
| virtual const short * | hfield::Heightfield::getHeightArray (void) const =0 throw () |
| returns raw height values, NOT multipled by yScale yet | |
| virtual smart_ptr < nstream::Manager > | hfield::Heightfield::getStreamManager (void)=0 throw () |
| virtual const char * | hfield::Heightfield::getHeightfieldPath (void) const =0 throw () |
| virtual const char * | hfield::Heightfield::getTexturePath (void) const =0 throw () |
| virtual float | hfield::Heightfield::getHeight (IN float x, IN float z) const =0 throw () |
| returns true height values, already multiplied by yScale | |
| static smart_ptr< Heightfield > | hfield::Heightfield::create (IO nstream::Stream *stream) |
| Create a heightfield from a named stream. | |
This library provides basic heightfield support.
This is for modeling terrains logically on the client and server.
NOTE: this library does NOT support rendering! It is just a logical heightfield. Other libraries (such as terrain) know how to render one of these. The purpose of this library is to be useful on the server (no rendering) and client.
| virtual void hfield::Heightfield::dump | ( | IN const char * | txt | ) | const throw () [pure virtual, inherited] |
| virtual int hfield::Heightfield::getWidth | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual int hfield::Heightfield::getLength | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual float hfield::Heightfield::getXZScale | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual float hfield::Heightfield::getYScale | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual short hfield::Heightfield::getMinHeight | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual short hfield::Heightfield::getMaxHeight | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual const short* hfield::Heightfield::getHeightArray | ( | void | ) | const throw () [pure virtual, inherited] |
returns raw height values, NOT multipled by yScale yet
| virtual smart_ptr<nstream::Manager> hfield::Heightfield::getStreamManager | ( | void | ) | throw () [pure virtual, inherited] |
| virtual const char* hfield::Heightfield::getHeightfieldPath | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual const char* hfield::Heightfield::getTexturePath | ( | void | ) | const throw () [pure virtual, inherited] |
| virtual float hfield::Heightfield::getHeight | ( | IN float | x, | |
| IN float | z | |||
| ) | const throw () [pure virtual, inherited] |
returns true height values, already multiplied by yScale
| static smart_ptr<Heightfield> hfield::Heightfield::create | ( | IO nstream::Stream * | stream | ) | [static, inherited] |
Create a heightfield from a named stream.
See the Wavepacket named stream library for the nstream interface and usage: http://wavepacket-lib.sourceforge.net/
1.7.1