Class LineSceneNode
Namespace: ValveResourceFormat.Renderer.SceneNodes
Assembly: Renderer.dll
Scene node that renders a list of line segments.
public class LineSceneNode : SceneNodeInheritance
object ← SceneNode ← LineSceneNode
Inherited Members
SceneNode.Transform, SceneNode.LayerName, SceneNode.LayerEnabled, SceneNode.BoundingBox, SceneNode.LocalBoundingBox, SceneNode.Name, SceneNode.Id, SceneNode.IsSelected, SceneNode.Flags, SceneNode.RenderAsViewmodel, SceneNode.Scene, SceneNode.Parent, SceneNode.EnvMaps, SceneNode.ShaderEnvMapVisibility, SceneNode.LightingOrigin, SceneNode.OverlayRenderOrder, SceneNode.CubeMapPrecomputedHandshake, SceneNode.LightProbeVolumePrecomputedHandshake, SceneNode.LightProbeBinding, SceneNode.EntityData, SceneNode.Update(Scene.UpdateContext), SceneNode.Render(Scene.RenderContext), SceneNode.GetSupportedRenderModes(), SceneNode.SetRenderMode(string), SceneNode.Delete(), SceneNode.GetCameraDistance(Camera)
Constructors
LineSceneNode(Scene, Vector3, Vector3, Color32, Color32)
Initializes a new instance of the class rendering 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[])
Initializes a new instance of the class rendering 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.
Methods
Delete()
Releases resources held by this node.
public override void Delete()Render(RenderContext)
Called each frame to render this node.
public override void Render(Scene.RenderContext context)Parameters
context Scene.RenderContext
The current render context.

