Skip to content

cf_draw_push_shape_aa

Category: draw
GitHub: cute_draw.h


Pushes the shape antialias scale.

void cf_draw_push_shape_aa(float aa);
Parameters Description
aa Antialias scale. 0 turns off antialiasing, non-zero values enable antialiasing at that scale. Default is 1.5.

Remarks

Shape drawing functions can be drawn in antialiased mode, or in plain mode. Antialiasing is slightly slower, but looks much smoother. A larger number makes the borders of shapes blurrier. The number probably shouldn't be more than 2 or 3 for most cases. This only affects shapes, not text or sprites.

cf_draw_peek_shape_aa
cf_draw_pop_shape_aa