Class SelectionVisuals
Namespace: ValveResourceFormat.Renderer.Editor.Selection
Assembly: Renderer.dll
Draws the helpers for a SelectionSet over the final image, so their colors show as given: bounds with edge lengths, the shapes a selected entity's class declares, the node's name, and optionally the lighting it uses. Lines and faces are solid where the scene does not hide them, and faint over it. The outline itself is drawn by the renderer for every node with SceneNode.IsSelected.
public sealed class SelectionVisualsInheritance
object ← SelectionVisuals
Constructors
SelectionVisuals(RendererContext, SelectionSet)
Creates the buffers the helpers are drawn with.
public SelectionVisuals(RendererContext rendererContext, SelectionSet selection)Parameters
rendererContext RendererContext
Renderer context for loading shaders.
selection SelectionSet
The selection to draw.
Properties
LightingBindings
Gets or sets which lighting is shown linked to each selected node.
public LightingBindingDisplay LightingBindings { get; set; }Property Value
Methods
Delete()
Deletes the GL objects.
public void Delete()Render(RenderTexture)
Draws the helpers built by the last SelectionVisuals.Update(RenderContext, UpdateContext) over the final image, after post processing.
public void Render(RenderTexture sceneDepth)Parameters
sceneDepth RenderTexture
The scene's resolved depth, to find what it hides.
Update(RenderContext, UpdateContext)
Rebuilds the helper shapes and labels for the current selection.
public void Update(Scene.RenderContext renderContext, Scene.UpdateContext updateContext)Parameters
renderContext Scene.RenderContext
Render context providing the camera.
updateContext Scene.UpdateContext
Update context providing the text renderer.

