Skip to content

cf_draw_push_sprite_edge

Category: draw
GitHub: cute_draw.h


Pushes the sprite edge mode used by subsequent sprite draws.

void cf_draw_push_sprite_edge(CF_SpriteEdge edge);
Parameters Description
edge The edge mode to use. See CF_SpriteEdge. Default is CF_SPRITE_EDGE_SOFT.

Remarks

This is a CPU-side property of each sprite's geometry, so mixing modes within a frame costs nothing extra -- it won't split batches the way cf_draw_push_filter does. Applies to cf_draw_sprite and the 9-slice draws; text is unaffected, since glyphs carry their own padding from the font rasterizer.

CF_SpriteEdge
cf_sprite_edge_to_string
cf_draw_peek_sprite_edge
cf_draw_pop_sprite_edge