DebugDraw class Rendering
Immediate-mode wireframe debug visualization utility for lines, rays, boxes, spheres, and axes.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- maxVertexLimit ↔ int
-
Maximum vertex limit to avoid unbounded accumulation when un-flushed.
getter/setter pair
- vertexCount → int
-
Total number of line vertices accumulated for the current frame.
no setter
Static Methods
-
axes(
Matrix4 transform, {double size = 1.0}) → void -
Draws 3D coordinate axes (RGB = XYZ) for
transform. -
box(
Aabb3 bounds, {Vector4? color}) → void - Draws an axis-aligned bounding box wireframe.
-
clear(
) → void - Clears all accumulated debug geometry without building.
-
flushMesh(
{GeometryBufferArena? bufferArena, GeometryStorage storage = GeometryStorage.fixed}) → MeshGeometry? - Builds a MeshGeometry containing all accumulated line segments and clears the buffer.
-
line(
Vector3 start, Vector3 end, {Vector4? color}) → void -
Draws a wireframe line segment between
startandend. -
ray(
Vector3 origin, Vector3 direction, {double length = 1.0, Vector4? color}) → void -
Draws a ray starting at
originalongdirectionwith lengthlength. -
sphere(
Vector3 center, double radius, {int segments = 16, Vector4? color}) → void -
Draws a wireframe sphere at
centerwithradius.