ecs_table_get_id

Function ecs_table_get_id 

Source
pub unsafe extern "C" fn ecs_table_get_id(
    world: *const ecs_world_t,
    table: *const ecs_table_t,
    id: ecs_id_t,
    offset: i32,
) -> *mut c_void
Expand description

Get column from table by component id. This operation returns the component array for the provided component id.

@param table The table. @param id The component id for the column. @param offset The index of the first row to return (0 for entire column). @return The component array, or NULL if the index is not a component.