hgeDistortionMesh::SetDisplacement
Sets displacement for the specified distortion node.
void SetDisplacement(
int col,
int row,
float dx,
float dy,
int ref
);
Parameters
- col
- Column of the node to be changed. The numeration starts from 0.
- row
- Row of the node to be changed. The numeration starts from 0.
- dx
- X-axis displacement.
- dy
- Y-axis displacement.
- ref
- The displacement reference point. Should be one of these:
HGEDISP_NODE - the reference point is the default node position
HGEDISP_TOPLEFT - the reference point is the top-left corner of the mesh
HGEDISP_CENTER - the reference point is the center of the mesh
Requirements
Header: hgedistort.h
Import library: hgehelp.lib
See also
GetDisplacement,
SetZ,
SetColor
|