natiny_material_has_tag
C
bool natiny_material_has_tag(NatinyMaterial material, const char* tag);
Whether the material carries this tag.
Parameters
| Name |
Type |
Description |
material |
NatinyMaterial |
Material handle |
tag |
const char* |
Tag name |
Returns
| Type |
Description |
bool |
true when the material carries the tag |
Example
C
bool transparent = natiny_material_has_tag(material, "transparent");
Notes
- A tag no material has ever been given reads as
false rather than being
created here; natiny_material_add_tag is what creates one.
- An invalid handle reads as
false.