Skip to content

cf_sprite_add_blend

Category: sprite
GitHub: cute_sprite.h


Register a layer blend for an aseprite sprite asset.

int cf_sprite_add_blend(const char* path, const char** layer_names, int layer_count);
Parameters Description
path Virtual path used when loading the sprite.
layer_names Array of layer name strings to include.
layer_count Number of entries in layer_names.

Return Value

The blend index (1, 2, ...). Blend 0 = default (all visible layers).

Remarks

Ignores file visibility flags -- includes exactly the named layers.

CF_Sprite
cf_sprite_blend_count