mk_particle_scene_attachfunction
mk_particle_instance_t mk_particle_scene_attach(mk_particle_scene_t bridge, mk_scene_node_t node, mk_particle_effect_t effect)Attach an effect to a node and return the bridge-owned playback instance.
Reattaching the same node first destroys its previous owned instance. GPU mesh geometry resolved into the effect is registered automatically. Applications supplying geometry out of band should immediately register each mesh with mk_particle_mesh_set_geometry() on the returned instance.
| Parameter | Type | Description |
|---|---|---|
bridge | mk_particle_scene_t | Value for bridge. |
node | mk_scene_node_t | Value for node. |
effect | mk_particle_effect_t | Value for effect. |
Returns The resulting handle or value.