Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; #FUNCTION# =============================================================================================================
- ; Name...........: _IrrGetNodeScale
- ; Description ...: Get the scale of a node in the scene.
- ; Syntax.........: _IrrGetNodeScale($h_Node, $f_X, $f_Y, $f_Z)
- ; Parameters ....: $h_Node - Handle of a scene node
- ; Return values .: Success - 1D Array containing X, Y, Z scale of the node.
- ; |$Array[0] = X Scale float value
- ; |$Array[1] = Y Scale float value
- ; |$Array[2] = Z Scale float value
- ; Failure - False and @error 1
- ; Author ........:
- ; Modified.......:
- ; Remarks .......: None
- ; Related .......: _IrrSetNodeScale
- ; Link ..........:
- ; Example .......: Yes
- ; ===============================================================================================================================
- Func _IrrGetNodeScale($h_Node)
- Local $aRestult, $aReturn[3]
- $aRestult = DllCall($_irrDll, "none:cdecl", "IrrGetNodeScale", "UINT_PTR", $h_Node, "float*", 0, "float*", 0, "float*", 0)
- If @error Then Return SetError(1, 0, False)
- For $i = 0 To 2
- $aReturn[$i] = $aRestult[$i + 2]
- Next
- Return SetError(0, 0, $aReturn)
- EndFunc ;==>_IrrSetNodeScale
Add Comment
Please, Sign In to add comment