Class Viewport3D
- Namespace
- Lime
- Assembly
- Lime.dll
[TangerineNodeBuilder("BuildForTangerine")]
[TangerineAllowedChildrenTypes(new Type[] { typeof(Node3D), typeof(SplineGear3D), typeof(Audio) })]
[TangerineMenuPath("3D/Viewport 3D")]
[TangerineVisualHintGroup("/All/Nodes/Containers", null)]
public class Viewport3D : Widget, IDisposable, IAnimatorHost, IRenderChainBuilder, IAnimable, ICloneable
- Inheritance
-
Viewport3D
- Implements
- Inherited Members
- Extension Methods
Constructors
Viewport3D()
public Viewport3D()
Properties
Camera
public Camera3D Camera { get; }
Property Value
CameraRef
[YuzuMember]
[TangerineKeyframeColor(28)]
public NodeReference<Camera3D> CameraRef { get; set; }
Property Value
Frame
[YuzuMember]
[TangerineKeyframeColor(31)]
public float Frame { get; set; }
Property Value
Methods
AddToRenderChain(RenderChain)
Adds widget and all its descendants to render chain.
public override void AddToRenderChain(RenderChain chain)
Parameters
chain
RenderChain
GetRenderObject()
TODO: Add summary.
protected override RenderObject GetRenderObject()
Returns
MakeProjection(float, float, Matrix32, Matrix44, Matrix44)
public static Matrix44 MakeProjection(float width, float height, Matrix32 transform, Matrix44 cameraProjection, Matrix44 orthoProjection)
Parameters
Returns
OnSizeChanged(Vector2)
protected override void OnSizeChanged(Vector2 sizeDelta)
Parameters
sizeDelta
Vector2
PartialHitTest(ref HitTestArgs)
Checks whether this widget contains the given point.
protected override bool PartialHitTest(ref HitTestArgs args)
Parameters
args
HitTestArgs
Returns
ScreenPointToRay(Vector2)
public Ray ScreenPointToRay(Vector2 pt)
Parameters
pt
Vector2
Returns
ScreenPointToRay(Vector3)
public Ray ScreenPointToRay(Vector3 pt)
Parameters
pt
Vector3
Returns
ScreenToWorldPoint(Vector3)
public Vector3 ScreenToWorldPoint(Vector3 pt)
Parameters
pt
Vector3
Returns
ViewportPointToRay(Vector2)
public Ray ViewportPointToRay(Vector2 pt)
Parameters
pt
Vector2
Returns
ViewportPointToRay(Vector3)
public Ray ViewportPointToRay(Vector3 pt)
Parameters
pt
Vector3
Returns
ViewportToWorldPoint(Vector3)
public Vector3 ViewportToWorldPoint(Vector3 pt)
Parameters
pt
Vector3
Returns
WorldToScreenPoint(Vector3)
public Vector3 WorldToScreenPoint(Vector3 pt)
Parameters
pt
Vector3
Returns
WorldToViewportPoint(Vector3)
public Vector3 WorldToViewportPoint(Vector3 pt)
Parameters
pt
Vector3