Correct. The Machinery will filter out all components implementing the
tm_ci_render_i interface and treat them as a “renderable” component.
So correct me if I’m wrong, but essentially you want to query the state of another component owned by the same entity as the component doing rendering (i.e implementing the
If so, one way to do that would be to lookup the other component from the same entity by doing something like this inside the component render function:
uint32_t c_idx = tm_entity_api->lookup_component(ctx, <hashed-name-of-other-component>);
other_component_t *other = tm_entity_api->get_component(ctx, args->entities[args->entity_indices[i]], c_idx);
Hope that helps, and let me know if it’s unclear.