#[repr(C)]pub struct tm_asset_scene_api {
pub create: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i) -> *mut tm_asset_scene_o>,
pub destroy: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, allocator: *mut tm_allocator_i)>,
pub droppable: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>,
pub create_entity: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t, ctx: *mut tm_entity_context_o, parent_entity: tm_tt_id_t, name: *const c_char, pos: tm_vec3_t, scl: tm_vec3_t, undo_scope: tm_tt_undo_scope_t) -> tm_tt_id_t>,
pub bound_entity_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *const tm_the_truth_o, asset: tm_tt_id_t, bounds: *mut tm_vec3_t)>,
}Fields§
§create: Option<unsafe extern "C" fn(allocator: *mut tm_allocator_i) -> *mut tm_asset_scene_o>§destroy: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, allocator: *mut tm_allocator_i)>§droppable: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t) -> bool>§create_entity: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *mut tm_the_truth_o, asset: tm_tt_id_t, ctx: *mut tm_entity_context_o, parent_entity: tm_tt_id_t, name: *const c_char, pos: tm_vec3_t, scl: tm_vec3_t, undo_scope: tm_tt_undo_scope_t) -> tm_tt_id_t>§bound_entity_asset: Option<unsafe extern "C" fn(inst: *mut tm_asset_scene_o, tt: *const tm_the_truth_o, asset: tm_tt_id_t, bounds: *mut tm_vec3_t)>Trait Implementations§
Source§impl Clone for tm_asset_scene_api
impl Clone for tm_asset_scene_api
Source§fn clone(&self) -> tm_asset_scene_api
fn clone(&self) -> tm_asset_scene_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_asset_scene_api
Auto Trait Implementations§
impl Freeze for tm_asset_scene_api
impl RefUnwindSafe for tm_asset_scene_api
impl Send for tm_asset_scene_api
impl Sync for tm_asset_scene_api
impl Unpin for tm_asset_scene_api
impl UnsafeUnpin for tm_asset_scene_api
impl UnwindSafe for tm_asset_scene_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