Esempio n. 1
0
 /// <summary>
 /// This function applies a 3D transformation to a shader element when it is drawn with dxDrawImage.
 /// </summary>
 public bool SetTransform(Vector3 rotation, Vector3 rotationCenterOffset, Vector2 perspectiveCenterOffset, bool rotationCenterOffsetOriginIsScreen = false, bool perspectiveCenterOffsetOriginIsScren = false)
 {
     return(MtaClient.DxSetShaderTransform(materialElement, rotation.X, rotation.Y, rotation.Z, rotationCenterOffset.X, rotationCenterOffset.Y, rotationCenterOffset.Z, rotationCenterOffsetOriginIsScreen, perspectiveCenterOffset.X, perspectiveCenterOffset.Y, perspectiveCenterOffsetOriginIsScren));
 }