Example #1
0
 /// <summary>
 /// Define from a projection or view-projection matrix.
 /// </summary>
 public void Define(Urho.Matrix4 projection)
 {
     Runtime.ValidateObject(this);
     Frustum_Define3(handle, ref projection);
 }
Example #2
0
 /// <summary>
 /// Return projected by a 4x4 projection matrix.
 /// </summary>
 public Rect Projected(Urho.Matrix4 transform)
 {
     Runtime.ValidateObject(this);
     return(Frustum_Projected(handle, ref transform));
 }
Example #3
0
 internal static extern void Frustum_Define3(IntPtr handle, ref Urho.Matrix4 projection);
Example #4
0
 /// <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);
 }
Example #5
0
 internal static extern Rect Frustum_Projected(IntPtr handle, ref Urho.Matrix4 transform);
Example #6
0
 /// <summary>
 /// Return projected by a 4x4 projection matrix.
 /// </summary>
 public Rect Projected(Urho.Matrix4 projection)
 {
     Runtime.ValidateObject(this);
     return(Frustum_Projected(handle, ref projection));
 }
Example #7
0
 internal static extern void Frustum_DefineSplit(IntPtr handle, ref Urho.Matrix4 projection, float nearValue, float farValue);
Example #8
0
 internal static extern Rect Frustum_Projected(IntPtr handle, ref Urho.Matrix4 projection);
Example #9
0
 /// <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);
 }
Example #10
0
 internal static extern void Camera_SetProjection(IntPtr handle, ref Urho.Matrix4 projection);
Example #11
0
 /// <summary>
 /// Set a Matrix4 attribute.
 /// </summary>
 public bool SetMatrix4(string name, Urho.Matrix4 value)
 {
     Runtime.ValidateObject(this);
     return(XmlElement_SetMatrix4(handle, name, ref value));
 }
Example #12
0
 internal static extern bool XmlElement_SetMatrix4(IntPtr handle, string name, ref Urho.Matrix4 value);