/// <summary> /// Define from a projection or view-projection matrix. /// </summary> public void Define(Urho.Matrix4 projection) { Runtime.ValidateObject(this); Frustum_Define3(handle, ref projection); }
/// <summary> /// Return projected by a 4x4 projection matrix. /// </summary> public Rect Projected(Urho.Matrix4 transform) { Runtime.ValidateObject(this); return(Frustum_Projected(handle, ref transform)); }
internal static extern void Frustum_Define3(IntPtr handle, ref Urho.Matrix4 projection);
/// <summary> /// Define a split (limited) frustum from a projection matrix, with near /// & /// far distances specified. /// </summary> public void DefineSplit(Urho.Matrix4 projection, float nearValue, float farValue) { Runtime.ValidateObject(this); Frustum_DefineSplit(handle, ref projection, nearValue, farValue); }
internal static extern Rect Frustum_Projected(IntPtr handle, ref Urho.Matrix4 transform);
/// <summary> /// Return projected by a 4x4 projection matrix. /// </summary> public Rect Projected(Urho.Matrix4 projection) { Runtime.ValidateObject(this); return(Frustum_Projected(handle, ref projection)); }
internal static extern void Frustum_DefineSplit(IntPtr handle, ref Urho.Matrix4 projection, float nearValue, float farValue);
internal static extern Rect Frustum_Projected(IntPtr handle, ref Urho.Matrix4 projection);
/// <summary> /// Set custom projection matrix, which should be specified in D3D convention with depth range 0 - 1. Disables auto aspect ratio. /// Change any of the standard view parameters (FOV, far clip, zoom etc.) to revert to the standard projection. /// Note that the custom projection is not serialized or replicated through the network. /// </summary> public void SetProjection(Urho.Matrix4 projection) { Runtime.ValidateRefCounted(this); Camera_SetProjection(handle, ref projection); }
internal static extern void Camera_SetProjection(IntPtr handle, ref Urho.Matrix4 projection);
/// <summary> /// Set a Matrix4 attribute. /// </summary> public bool SetMatrix4(string name, Urho.Matrix4 value) { Runtime.ValidateObject(this); return(XmlElement_SetMatrix4(handle, name, ref value)); }
internal static extern bool XmlElement_SetMatrix4(IntPtr handle, string name, ref Urho.Matrix4 value);