Class LineSceneNode
Namespace: ValveResourceFormat.Renderer.SceneNodes
Assembly: Renderer.dll
Scene node that renders a list of line segments.
public class LineSceneNode : WireframeSceneNodeInheritance
object ← SceneNode ← WireframeSceneNode ← LineSceneNode
Inherited Members
WireframeSceneNode.VertexCount, WireframeSceneNode.IsTranslucent, WireframeSceneNode.BuildLines(), WireframeSceneNode.Delete(), WireframeSceneNode.Render(Scene.RenderContext), WireframeSceneNode.DrawLines(Scene.RenderContext), WireframeSceneNode.DrawLines(int, int), WireframeSceneNode.GetIdColor(uint), SceneNode.Tint, SceneNode.Alpha, SceneNode.TintAlpha, SceneNode.Transform, SceneNode.LayerName, SceneNode.LayerEnabled, SceneNode.Visible, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsSelected, SceneNode.IsPointMarker, SceneNode.Flags, SceneNode.AdditionalFlags, SceneNode.RenderPasses, SceneNode.UpdateBuffers(Camera), SceneNode.Scene, SceneNode.KeepsMarkerSize, SceneNode.Parent, SceneNode.Children, SceneNode.ParentAttachment, SceneNode.LocalTransform, SceneNode.SetParent(SceneNode?, string?, Matrix4x4?), SceneNode.GetChildFrame(string?), SceneNode.UpdateHierarchy(Scene.UpdateContext), SceneNode.GetRigidTransform(Matrix4x4), SceneNode.ShaderEnvMapVisibility, SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.CubeMapPrecomputedHandshake, SceneNode.LightProbeVolumePrecomputedHandshake, SceneNode.LightProbeBinding, SceneNode.EnvMapBinding, SceneNode.EntityData, SceneNode.EntityInstance, SceneNode.Update(Scene.UpdateContext), SceneNode.Simulation, SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
LineSceneNode(Scene, Vector3, Vector3, Color32, Color32)
Renders a single line segment.
public LineSceneNode(Scene scene, Vector3 start, Vector3 end, Color32 startColor, Color32 endColor)Parameters
scene Scene
The scene this node belongs to.
start Vector3
The start position of the line.
end Vector3
The end position of the line.
startColor Color32
The color at the start of the line.
endColor Color32
The color at the end of the line.
LineSceneNode(Scene, SimpleVertex[])
Renders a list of line segments.
public LineSceneNode(Scene scene, SimpleVertex[] vertices)Parameters
scene Scene
The scene this node belongs to.
vertices SimpleVertex[]
Pairs of vertices, one pair per line segment.
Properties
IsTranslucent
Gets whether the lines draw in the translucent pass without depth writes, or in the opaque pass with the pass depth state.
protected override bool IsTranslucent { get; }Property Value
bool
Methods
BuildLines()
Builds the line list, two vertices per line. Called once, when the node is first drawn.
protected override List<SimpleVertex> BuildLines()
