Struct machinery_api::plugins::entity::SceneTreeComponentApi[][src]

#[repr(C)]
pub struct SceneTreeComponentApi {
Show 15 fields pub setup_nodes: Option<unsafe extern "C" fn(manager: *mut SceneTreeComponentManagerO, st: *mut SceneTreeComponentT, nodes: *const SceneTreeNodeT, num_nodes: u32, debug_names: *const c_char)>, pub node_names: Option<unsafe extern "C" fn(st: *const SceneTreeComponentT) -> SceneTreeNodeNamesT>, pub node_index_from_name: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_name: StrhashT, not_found: u32) -> u32>, pub node_debug_name_from_index: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> *const c_char>, pub world_matrices: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT) -> *const Mat44T>, pub local_matrices: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT) -> *const Mat44T>, pub local_transform: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> TransformT>, pub world_transform: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> TransformT>, pub set_local_transform: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, node_idx: u32, t: *const TransformT)>, pub set_local_matrix: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, node_idx: u32, tm: *const Mat44T)>, pub set_world_transform: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, trans: *const TransformT, node_idx: u32, t: *const TransformT)>, pub transform: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, trans: *const TransformT, version: u64)>, pub transform_subtree: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, node_idx: u32)>, pub set_debug_color: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, color: ColorSrgbT)>, pub node_parent_index: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, node_idx: u32) -> u32>,
}

Fields

setup_nodes: Option<unsafe extern "C" fn(manager: *mut SceneTreeComponentManagerO, st: *mut SceneTreeComponentT, nodes: *const SceneTreeNodeT, num_nodes: u32, debug_names: *const c_char)>node_names: Option<unsafe extern "C" fn(st: *const SceneTreeComponentT) -> SceneTreeNodeNamesT>node_index_from_name: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_name: StrhashT, not_found: u32) -> u32>node_debug_name_from_index: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> *const c_char>world_matrices: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT) -> *const Mat44T>local_matrices: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT) -> *const Mat44T>local_transform: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> TransformT>world_transform: Option<unsafe extern "C" fn(component: *const SceneTreeComponentT, node_idx: u32) -> TransformT>set_local_transform: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, node_idx: u32, t: *const TransformT)>set_local_matrix: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, node_idx: u32, tm: *const Mat44T)>set_world_transform: Option<unsafe extern "C" fn(component: *mut SceneTreeComponentT, trans: *const TransformT, node_idx: u32, t: *const TransformT)>transform: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, trans: *const TransformT, version: u64)>transform_subtree: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, node_idx: u32)>set_debug_color: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, color: ColorSrgbT)>node_parent_index: Option<unsafe extern "C" fn(st: *mut SceneTreeComponentT, node_idx: u32) -> u32>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.