iTerraSampler Struct Reference
TerraSampler objects are used for the actual queries of terrain data Sampler regions are requested from the iTerraFormer plugin, and sampled for data via the Sample methods. More...
#include <ivaria/terraform.h>
Inheritance diagram for iTerraSampler:

Public Member Functions | |
virtual const float * | SampleFloat (csStringID type)=0 |
Sample float data of the specified from the region. | |
virtual const csVector2 * | SampleVector2 (csStringID type)=0 |
Sample csVector2 data of the specified from the region. | |
virtual const csVector3 * | SampleVector3 (csStringID type)=0 |
Sample csVector3 data of the specified from the region. | |
virtual const int * | SampleInteger (csStringID type)=0 |
Sample integer data of the specified from the region. | |
virtual const csArray< iMaterialWrapper * > & | GetMaterialPalette ()=0 |
Retrieve the material palette used by this sampler region. | |
virtual const csBox2 & | GetRegion () const =0 |
Retrieve the sample region specified when the sampler was created. | |
virtual unsigned int | GetResolution () const =0 |
Retrieve the sampling resolution specified when the sampler was created. | |
virtual unsigned int | GetVersion () const =0 |
Retrieve the version number of this sampler. | |
virtual void | Cleanup ()=0 |
Hint to the sampler that no data will be retrieved from it for a while. |
Detailed Description
TerraSampler objects are used for the actual queries of terrain data Sampler regions are requested from the iTerraFormer plugin, and sampled for data via the Sample methods.
Definition at line 94 of file terraform.h.
Member Function Documentation
|
Hint to the sampler that no data will be retrieved from it for a while. This may give the sampler a chance to release data it's been caching for faster retrieval, and thereby save memory. This is a hint only, and may be ignored by the underlying implementation. Arrays returned by Sample calls are not guaranteed to be valid after Cleanup has been called, and must be considered invalid. |
|
Retrieve the material palette used by this sampler region. Null entries are allowed. |
|
Retrieve the sample region specified when the sampler was created.
|
|
Retrieve the sampling resolution specified when the sampler was created.
|
|
Retrieve the version number of this sampler. This will be increased whenever any terrain data in this region changes, and should thereby be used as a dirty indicator. |
|
Sample float data of the specified from the region. Data is sampled in a grid (regular or irregular) with the square resolution specified when the sampler was created. The returned array is guaranteed to be valid until Cleanup is called. |
|
Sample integer data of the specified from the region. Data is sampled in a grid (regular or irregular) with the square resolution specified when the sampler was created. The returned array is guaranteed to be valid until Cleanup is called. |
|
Sample csVector2 data of the specified from the region. Data is sampled in a grid (regular or irregular) with the square resolution specified when the sampler was created. The returned array is guaranteed to be valid until Cleanup is called. |
|
Sample csVector3 data of the specified from the region. Data is sampled in a grid (regular or irregular) with the square resolution specified when the sampler was created. The returned array is guaranteed to be valid until Cleanup is called. |
The documentation for this struct was generated from the following file:
- ivaria/terraform.h
Generated for Crystal Space by doxygen 1.3.9.1