Class OctreeDebugRenderer
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Debug visualization renderer for octree spatial partitioning structure.
csharp
public class OctreeDebugRendererInheritance
Constructors
OctreeDebugRenderer(Octree, RendererContext, bool)
Initializes the octree debug renderer and creates GPU resources.
csharp
public OctreeDebugRenderer(Octree octree, RendererContext rendererContext, bool dynamic)Parameters
octree Octree
The octree to visualize.
rendererContext RendererContext
Renderer context for loading shaders.
dynamic bool
When true, the vertex buffer is rebuilt every frame.
Methods
Delete()
Deletes the GPU vertex and vertex array objects.
csharp
public void Delete()Rebuild()
Traverses the octree and uploads fresh line geometry to the GPU vertex buffer.
csharp
public void Rebuild()Render()
Renders the octree visualization for the current frame, rebuilding geometry if dynamic.
csharp
public void Render()StaticBuild()
Builds the static vertex buffer once for a non-dynamic octree visualization.
csharp
public void StaticBuild()
