Skip to content

cf_draw3d_push_dash

Category: draw3d
GitHub: cute_draw3d.h


Pushes a dash pattern for subsequent 3d stroke drawing.

void cf_draw3d_push_dash(float on_length, float off_length, float phase);
Parameters Description
on_length Length of each dash in world units.
off_length Length of each gap in world units.
phase Offset into the pattern in world units -- animate for marching ants.

Remarks

Applies to strokes (lines, polylines, circles, arcs, wire boxes); solids ignore it. Each dash gets round caps and the same local anti-aliasing and thin-stroke fading as solid strokes. An on_length of zero (the default) draws solid strokes. On full circles the pattern wraps at the seam unless on_length + off_length divides the circumference evenly.

cf_draw3d_pop_dash
cf_draw3d_peek_dash
cf_draw3d_line
cf_draw3d_circle
cf_draw3d_arc