Return to previous page Return to menu Go to next page

 angleSeq = ROT_SEQ_ZYX: Rotate the viewpoint in the order of Z → Y → X
                   = ROT_SEQ_ZXY: “” Z → X → Y ”
                   = ROT_SEQ_YZX: “Y → Z → X”
                   = ROT_SEQ_YXZ: “Y → X → Z”
                   = ROT_SEQ_XYZ: “X → Y → Z”
                   = ROT_SEQ_XZY: “X → Z → Y” 

  Title  
Function specifications
  Function  
Move cluster
Function Name
SPR_3MoveCluster
No
7

  format  void SPR_3MoveCluster (SprCluster * cluster, Uint16 moveKind,
                                                         MthXyz *angle, MthXyz *point)
 Input  cluster: Cluster table pointer to be moved
:  moveKind: Type of movement
:  b0: 0 = relative movement
  1 ​​= Absolute movement
  b1: 0 = Rotation amount is angle
  1 ​​= Rotation amount is unit vector
.  angle: When the rotational movement is an angle, the specified range of movement is as follows.
:  If a vector is specified, it is converted to an angle.
  FIXED (-180.0) ≦ rotational movement ≦ FIXED (180.0)
:  point: Translation distance
 Output  None
 Function value  None
 Function  Moves the cluster in the order of rotation and parallel movement.
If  angle  is 0, the value will be ignored. 

  Title  
Function specifications
  Function  
Register model
Function Name
SPR_3DrawModel
No
8

  format  void SPR_3DrawModel (SprCluster * rootCluster)
 Input  rootCluster: Pointer of the root cluster table of the model to be displayed
 Output  None
 Function value  None
 Function  Register the model. 


Return to previous page Return to menu Go to next page