Struct SceneTreeComponentApi

Source
#[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§

Source§

impl SceneTreeComponentApi

Source

pub unsafe fn setup_nodes( &self, manager: *mut SceneTreeComponentManagerO, st: *mut SceneTreeComponentT, nodes: *const SceneTreeNodeT, num_nodes: u32, debug_names: *const c_char, )

Source

pub unsafe fn node_names( &self, st: *const SceneTreeComponentT, ) -> SceneTreeNodeNamesT

Source

pub unsafe fn node_index_from_name( &self, component: *const SceneTreeComponentT, node_name: StrhashT, not_found: u32, ) -> u32

Source

pub unsafe fn node_debug_name_from_index( &self, component: *const SceneTreeComponentT, node_idx: u32, ) -> *const c_char

Source

pub unsafe fn world_matrices( &self, component: *const SceneTreeComponentT, ) -> *const Mat44T

Source

pub unsafe fn local_matrices( &self, component: *const SceneTreeComponentT, ) -> *const Mat44T

Source

pub unsafe fn local_transform( &self, component: *const SceneTreeComponentT, node_idx: u32, ) -> TransformT

Source

pub unsafe fn world_transform( &self, component: *const SceneTreeComponentT, node_idx: u32, ) -> TransformT

Source

pub unsafe fn set_local_transform( &self, component: *mut SceneTreeComponentT, node_idx: u32, t: *const TransformT, )

Source

pub unsafe fn set_local_matrix( &self, component: *mut SceneTreeComponentT, node_idx: u32, tm: *const Mat44T, )

Source

pub unsafe fn set_world_transform( &self, component: *mut SceneTreeComponentT, trans: *const TransformT, node_idx: u32, t: *const TransformT, )

Source

pub unsafe fn transform( &self, st: *mut SceneTreeComponentT, trans: *const TransformT, version: u64, )

Source

pub unsafe fn transform_subtree( &self, st: *mut SceneTreeComponentT, node_idx: u32, )

Source

pub unsafe fn set_debug_color( &self, st: *mut SceneTreeComponentT, color: ColorSrgbT, )

Source

pub unsafe fn node_parent_index( &self, st: *mut SceneTreeComponentT, node_idx: u32, ) -> u32

Trait Implementations§

Source§

impl Api for SceneTreeComponentApi

Source§

impl Clone for SceneTreeComponentApi

Source§

fn clone(&self) -> SceneTreeComponentApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for SceneTreeComponentApi

Source§

fn default() -> SceneTreeComponentApi

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

impl Copy for SceneTreeComponentApi

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.