Skip to content

cf_draw3d_box_wire

Category: draw3d
GitHub: cute_draw3d.h


Draws the twelve edges of an axis-aligned box as anti-aliased lines.

void cf_draw3d_box_wire(CF_V3 center, CF_V3 half_extents, float thickness);
Parameters Description
center The box's center.
half_extents Half the box's size along each axis.
thickness The stroke's width in world units.

Remarks

Axis-aligned in local space -- push a rotation onto the transform stack for an oriented box. The classic bounding-box debug visualization.

cf_draw3d_cube
cf_draw3d_line
cf_draw3d_push