Skip to content

cf_draw3d_torus

Category: draw3d
GitHub: cute_draw3d.h


Draws a solid torus lit by a simple built-in hemisphere light.

void cf_draw3d_torus(CF_V3 center, CF_V3 normal, float radius, float tube_radius);
Parameters Description
center The torus's center.
normal The normal of the torus's plane (need not be normalized).
radius The major radius, from the center to the middle of the tube.
tube_radius The tube's radius.

cf_draw3d_cube
cf_draw3d_sphere
cf_draw3d_cone
cf_draw3d_circle
cf_draw3d_push_color