Class ToolsPass
Namespace: ValveResourceFormat.Renderer.Editor.ToolRender
Assembly: Renderer.dll
Draws the selection outline and the tool shapes over the final image, as Hammer draws its tool layers: hidden by the scene and by each other unless their mode draws them over it, blended in linear space, and multisampled with the scene.
public sealed class ToolsPass : IDisposableInheritance
object ← ToolsPass
Implements
Constructors
ToolsPass(RendererContext, Framebuffer)
Initializes the pass.
public ToolsPass(RendererContext rendererContext, Framebuffer sceneFramebuffer)Parameters
rendererContext RendererContext
Renderer context for loading the tools shader.
sceneFramebuffer Framebuffer
What the scene is rendered into, whose depth hides the shapes.
Methods
Dispose()
Deletes the GL objects.
public void Dispose()Render(Renderer, Framebuffer, SelectionVisuals, TextRenderer)
Post processes the scene, outlines the selected nodes, draws the tool shapes of the main scene and those of the selection over it, and puts the result in the target.
public void Render(Renderer renderer, Framebuffer target, SelectionVisuals selection, TextRenderer textRenderer)Parameters
renderer Renderer
The renderer of the frame.
target Framebuffer
Where the final image goes.
selection SelectionVisuals
What is selected, with its shapes in world space.
textRenderer TextRenderer
What the text among the shapes of the main scene is written with.

