22 INLINE PhysxHeightFieldDesc::
23 PhysxHeightFieldDesc() {
34 INLINE PhysxHeightFieldDesc::
35 ~PhysxHeightFieldDesc() {
58 return _desc.isValid();
66 INLINE
void PhysxHeightFieldDesc::
67 set_size(
unsigned int num_rows,
unsigned int num_columns) {
73 _desc.format = NX_HF_S16_TM;
74 _desc.nbRows = (NxU32) num_rows;
75 _desc.nbColumns = (NxU32) num_columns;
76 _desc.sampleStride =
sizeof(NxU32);
78 _samples =
new NxU32[_desc.nbColumns * _desc.nbRows];
79 _desc.samples = _samples;
89 INLINE
void PhysxHeightFieldDesc::
93 _desc.nbRows = (NxU32) 0;
94 _desc.nbColumns = (NxU32) 0;
bool is_valid() const
Returns true if the descriptor is valid.
void set_to_default()
(re)sets the structure to the default.