Guest User

Untitled

a guest
Aug 13th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.23 KB | None | 0 0
  1. ; #FUNCTION# =============================================================================================================
  2. ; Name...........: _IrrGetNodeScale
  3. ; Description ...: Get the scale of a node in the scene.
  4. ; Syntax.........: _IrrGetNodeScale($h_Node, $f_X, $f_Y, $f_Z)
  5. ; Parameters ....: $h_Node - Handle of a scene node
  6. ; Return values .: Success - 1D Array containing X, Y, Z scale of the node.
  7. ;                  |$Array[0] = X Scale float value
  8. ;                  |$Array[1] = Y Scale float value
  9. ;                  |$Array[2] = Z Scale float value
  10. ;                  Failure - False and @error 1
  11. ; Author ........:
  12. ; Modified.......:
  13. ; Remarks .......: None
  14. ; Related .......: _IrrSetNodeScale
  15. ; Link ..........:
  16. ; Example .......: Yes
  17. ; ===============================================================================================================================
  18. Func _IrrGetNodeScale($h_Node)
  19.     Local $aRestult, $aReturn[3]
  20.     $aRestult = DllCall($_irrDll, "none:cdecl", "IrrGetNodeScale", "UINT_PTR", $h_Node, "float*", 0, "float*", 0, "float*", 0)
  21.     If @error Then Return SetError(1, 0, False)
  22.     For $i = 0 To 2
  23.         $aReturn[$i] = $aRestult[$i + 2]
  24.     Next
  25.     Return SetError(0, 0, $aReturn)
  26. EndFunc   ;==>_IrrSetNodeScale
Add Comment
Please, Sign In to add comment