Skip to content

cf_draw3d_line

Category: draw3d
GitHub: cute_draw3d.h


Draws an anti-aliased 3d line segment with round caps.

void cf_draw3d_line(CF_V3 p0, CF_V3 p1, float thickness);
Parameters Description
p0 The first endpoint.
p1 The second endpoint.
thickness The line's width in world units.

Remarks

Thickness is measured in world units, so lines get thinner with distance under a perspective camera; lines thinner than a pixel fade out gracefully rather than aliasing. Endpoints respect the transform stack (cf_draw3d_push).

cf_draw3d_line2
cf_draw3d_polyline
cf_draw3d_arrow
cf_draw3d_push_color
cf_draw3d_box_wire