Skip to content

cf_draw3d_billboard

Category: draw3d
GitHub: cute_draw3d.h


Submits a sprite as a camera-facing quad at a 3d position -- a billboard.

void cf_draw3d_billboard(const CF_Sprite* sprite, CF_V3 position);
Parameters Description
sprite The sprite whose current frame supplies the image.
position The world position of the quad's center.

Remarks

Like cf_draw3d_sprite, but the quad is aimed with the current view's camera axes so it always faces the screen -- particles, pickups, impostors. The facing is full (spherical); for cylindrical billboards that pivot around y without tilting back (trees), build the basis yourself -- see the billboards sample, it is a handful of lines.

cf_draw3d_sprite
cf_draw3d_mesh
cf_draw3d_push_texture
CF_Sprite
cf_draw3d_push_view