Public API Reference

csLockedHeightData Struct Reference

Locked height data. More...

#include <imesh/terrain2.h>

List of all members.

Public Attributes

float * data
 height data array
size_t pitch
 array pitch

Detailed Description

Locked height data.

This class holds an information needed to fill/interpret height data. The elements are object-space heights (that is, they are _not_ affected by cell.GetSize ().z).

Two-dimensional height array is linearized, so additional math is needed to get access to desired height values: Instead of data[y][x], use data[y * pitch + x]

Definition at line 44 of file terrain2.h.

Member Data Documentation

height data array

Definition at line 47 of file terrain2.h.

array pitch

Definition at line 50 of file terrain2.h.

The documentation for this struct was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3