natiny_material_add_tag

C
void natiny_material_add_tag(NatinyMaterial material, const char* tag);

Adds a tag to the end of the material's tag list. natiny_render_tag selects models and particle systems by these tags.

Parameters

Name Type Description
material NatinyMaterial Material handle from natiny_material_create; an invalid handle is ignored
tag const char* Null-terminated tag name, copied; NULL, an empty string or a tag the material already has is ignored

Example

C
natiny_material_add_tag(glass, "world");
natiny_material_add_tag(glass, "transparent");