Skip to content

cf_draw_capsule2

Category: draw
GitHub: cute_draw.h


Draws a capsule wireframe.

void cf_draw_capsule2(CF_V2 p0, CF_V2 p1, float r, float thickness);
Parameters Description
p0 An endpoint of the interior line-segment of the capsule (the center of one end-cap).
p1 An endpoint of the interior line-segment of the capsule (the center of one end-cap).
r Radius of the capsule.
thickness The thickness of each line to draw.

cf_draw_capsule
cf_draw_capsule_fill2
cf_draw_capsule_fill