Panda3D
|
Descriptor class for height fields. More...
#include "physxHeightFieldDesc.h"
Public Member Functions | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
void | set_convex_edge_threshold (float threshold) |
void | set_height (unsigned int row, unsigned int column, short height) |
void | set_image (const PNMImage &image, unsigned short materialIndex=0) |
void | set_material_index (unsigned int row, unsigned int column, unsigned short materialIndex0, unsigned short materialIndex1) |
void | set_size (unsigned int num_rows, unsigned int num_columns) |
void | set_tess_flag (unsigned int row, unsigned int column, unsigned short value) |
void | set_thickness (float thickness) |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxHeightFieldDesc | _desc |
Descriptor class for height fields.
The height field data is copied when a PhysxHeightField object is created from this descriptor. After the call the user may discard the original height data (e.g. release the PNGImage).
Definition at line 31 of file physxHeightFieldDesc.h.
bool PhysxHeightFieldDesc::is_valid | ( | ) | const [inline] |
Returns true if the descriptor is valid.
Definition at line 56 of file physxHeightFieldDesc.I.
void PhysxHeightFieldDesc::set_to_default | ( | ) | [inline] |
(re)sets the structure to the default.
Definition at line 45 of file physxHeightFieldDesc.I.