Class OctreeDebugRenderer
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Debug visualization renderer for octree spatial partitioning structure.
public class OctreeDebugRenderer : LineDebugRendererInheritance
object ← LineDebugRenderer ← OctreeDebugRenderer
Inherited Members
LineDebugRenderer.Clear(), LineDebugRenderer.Upload(List<SimpleVertex>, BufferUsage), LineDebugRenderer.RenderLines(bool), LineDebugRenderer.Delete()
Constructors
OctreeDebugRenderer(Octree, RendererContext, bool)
Initializes the octree debug renderer and creates GPU resources.
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
Rebuild()
Traverses the octree and uploads fresh line geometry to the GPU vertex buffer.
public void Rebuild()Render()
Renders the octree visualization for the current frame, rebuilding geometry if dynamic.
public void Render()StaticBuild()
Builds the static vertex buffer once for a non-dynamic octree visualization.
public void StaticBuild()
