|
| | Surface (const Segment &segment, const Shader &shader, bool colors=true, bool alpha=true) |
| | Constructor. More...
|
| |
| void | populate () |
| | Populate the data buffer using the correct shader. More...
|
| |
|
const Segment & | getSegment () const |
| | Accessor for the terrain height segment this surface is associated with.
|
| |
| | Buffer (unsigned int size, unsigned int channels) |
| | Constructor. More...
|
| |
| ColorT & | operator() (unsigned int x, unsigned int y, unsigned int channel) |
| | Retrieve the data value at a given point. More...
|
| |
| const ColorT & | operator() (unsigned int x, unsigned int y, unsigned int channel) const |
| | Retrieve the data value at a given point. More...
|
| |
|
unsigned int | getSize () const |
| | Accessor for the size of segment, m_res + 1.
|
| |
|
unsigned int | getChannels () const |
| | Accessor for the number of data values per height point.
|
| |
|
ColorT * | getData () |
| | Accessor for a pointer to buffer containing data values.
|
| |
|
const ColorT * | getData () const |
| | Accessor for a pointer to buffer containing data values.
|
| |
| void | allocate () |
| | Allocate the storage required by the buffer. More...
|
| |
| bool | isValid () const |
| | Determine if this buffer has valid allocated storage. More...
|
| |
| void | invalidate () |
| | De-allocate the storage for this buffer. More...
|
| |
Data store for terrain surface data.