Class ToolGeometry
Namespace: ValveResourceFormat.Renderer.Editor.ToolRender
Assembly: Renderer.dll
The shapes a ToolRenderContext draws, batched by what they are drawn with, and the GL objects they are drawn from once uploaded.
csharp
public sealed class ToolGeometryInheritance
object ← ToolGeometry
Properties
Bounds
Gets the bounds of everything drawn.
csharp
public AABB Bounds { get; }Property Value
IsEmpty
Gets whether nothing has been drawn.
csharp
public bool IsEmpty { get; }Property Value
bool
Labels
Gets the text written among the shapes, which is drawn with the other text of the view.
csharp
public IReadOnlyList<ToolLabel> Labels { get; }Property Value
ShapeCount
Gets how many lines, triangles, handles and labels have been drawn.
csharp
public int ShapeCount { get; }Property Value
int
Methods
Clear()
Drops everything drawn, keeping the GL objects.
csharp
public void Clear()Delete()
Deletes the GL objects.
csharp
public void Delete()
