#[repr(C)]pub struct tm_volume_component_api {
pub contains: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut bool, count: u32)>,
pub contains_with_blend: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut f32, count: u32)>,
pub distance: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut f32, count: u32)>,
pub get_volume: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t) -> f32>,
pub sort_volumes_from_point: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, entities: *const tm_entity_t, entity_transforms: *const tm_transform_component_t, entity_indices: *const u32, num_objects: u32, point: tm_vec3_t, volume_result: *mut *mut u32, volume_weights: *mut *mut f32, global_result: *mut *mut u32, allocator: *mut tm_allocator_i)>,
}Fields§
§contains: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut bool, count: u32)>§contains_with_blend: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut f32, count: u32)>§distance: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t, points: *const tm_vec3_t, result: *mut f32, count: u32)>§get_volume: Option<unsafe extern "C" fn(inst: *const tm_volume_component_t, transform: *const tm_transform_t) -> f32>§sort_volumes_from_point: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, entities: *const tm_entity_t, entity_transforms: *const tm_transform_component_t, entity_indices: *const u32, num_objects: u32, point: tm_vec3_t, volume_result: *mut *mut u32, volume_weights: *mut *mut f32, global_result: *mut *mut u32, allocator: *mut tm_allocator_i)>Trait Implementations§
Source§impl Clone for tm_volume_component_api
impl Clone for tm_volume_component_api
Source§fn clone(&self) -> tm_volume_component_api
fn clone(&self) -> tm_volume_component_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_volume_component_api
Auto Trait Implementations§
impl Freeze for tm_volume_component_api
impl RefUnwindSafe for tm_volume_component_api
impl Send for tm_volume_component_api
impl Sync for tm_volume_component_api
impl Unpin for tm_volume_component_api
impl UnwindSafe for tm_volume_component_api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more