tm_scene_common_api

Struct tm_scene_common_api 

Source
#[repr(C)]
pub struct tm_scene_common_api {
Show 14 fields pub init_camera: Option<unsafe extern "C" fn(camera: *mut tm_transform_t, translation: tm_vec3_t)>, pub camera_frame_bounds: Option<unsafe extern "C" fn(camera: *mut tm_transform_t, camera_y_fov: f32, bounds: *const tm_vec3_t, translation_speed: *mut f32, focus_point: *mut tm_vec3_t)>, pub find_component_render_interfaces: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, allocator: *mut tm_allocator_i, selection: *const tm_tt_id_t, selection_n: u64, ignore: *const tm_entity_t, ignore_n: u64, include_entities_without_render_components: bool, res: *mut tm_ci_render_gather_callback_args_t)>, pub bound_assets: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, ignore: *const tm_entity_t, ignore_n: u64, bounds: *mut tm_vec3_t, include_origo: bool)>, pub bound_selected_assets: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, selection: *const tm_tt_id_t, selection_n: u64, ignore: *const tm_entity_t, ignore_n: u64, bounds: *mut tm_vec3_t, include_origo: bool)>, pub bound_entity_asset: Option<unsafe extern "C" fn(tt: *const tm_the_truth_o, entity: tm_tt_id_t, bounds: *mut tm_vec3_t)>, pub find_shader_data_engine_update: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, data: *mut tm_engine_update_set_t)>, pub gather_shader_data_filter: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, components: *const u32, num_components: u32, mask: *const tm_component_mask_t) -> bool>, pub find_renderables_engine_update: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, data: *mut tm_engine_update_set_t)>, pub gather_renderables_filter: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, components: *const u32, num_components: u32, mask: *const tm_component_mask_t) -> bool>, pub add_default_light_source: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o) -> tm_entity_t>, pub has_any_light_source: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> bool>, pub viewport_visualization_toolbar: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, entity_ctx: *mut tm_entity_context_o, le_settings: *mut tm_lighting_environment_settings_t, render_pipeline: *mut tm_render_pipeline_i, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, toolbar_r: tm_rect_t, toolbar_direction: u32) -> tm_rect_t>, pub place_entity: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, entity: tm_tt_id_t, ctx: *mut tm_entity_context_o, parent_entity: tm_tt_id_t, pos: tm_vec3_t, scl: tm_vec3_t, undo_scope: tm_tt_undo_scope_t)>,
}

Fields§

§init_camera: Option<unsafe extern "C" fn(camera: *mut tm_transform_t, translation: tm_vec3_t)>§camera_frame_bounds: Option<unsafe extern "C" fn(camera: *mut tm_transform_t, camera_y_fov: f32, bounds: *const tm_vec3_t, translation_speed: *mut f32, focus_point: *mut tm_vec3_t)>§find_component_render_interfaces: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, allocator: *mut tm_allocator_i, selection: *const tm_tt_id_t, selection_n: u64, ignore: *const tm_entity_t, ignore_n: u64, include_entities_without_render_components: bool, res: *mut tm_ci_render_gather_callback_args_t)>§bound_assets: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, ignore: *const tm_entity_t, ignore_n: u64, bounds: *mut tm_vec3_t, include_origo: bool)>§bound_selected_assets: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o, transform_component: u32, tt: *const tm_the_truth_o, selection: *const tm_tt_id_t, selection_n: u64, ignore: *const tm_entity_t, ignore_n: u64, bounds: *mut tm_vec3_t, include_origo: bool)>§bound_entity_asset: Option<unsafe extern "C" fn(tt: *const tm_the_truth_o, entity: tm_tt_id_t, bounds: *mut tm_vec3_t)>§find_shader_data_engine_update: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, data: *mut tm_engine_update_set_t)>§gather_shader_data_filter: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, components: *const u32, num_components: u32, mask: *const tm_component_mask_t) -> bool>§find_renderables_engine_update: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, data: *mut tm_engine_update_set_t)>§gather_renderables_filter: Option<unsafe extern "C" fn(inst: *mut tm_engine_o, components: *const u32, num_components: u32, mask: *const tm_component_mask_t) -> bool>§add_default_light_source: Option<unsafe extern "C" fn(entity_ctx: *mut tm_entity_context_o) -> tm_entity_t>§has_any_light_source: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> bool>§viewport_visualization_toolbar: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, entity_ctx: *mut tm_entity_context_o, le_settings: *mut tm_lighting_environment_settings_t, render_pipeline: *mut tm_render_pipeline_i, ui: *mut tm_ui_o, uistyle: *const tm_ui_style_t, toolbar_r: tm_rect_t, toolbar_direction: u32) -> tm_rect_t>§place_entity: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o, entity: tm_tt_id_t, ctx: *mut tm_entity_context_o, parent_entity: tm_tt_id_t, pos: tm_vec3_t, scl: tm_vec3_t, undo_scope: tm_tt_undo_scope_t)>

Trait Implementations§

Source§

impl Clone for tm_scene_common_api

Source§

fn clone(&self) -> tm_scene_common_api

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 Copy for tm_scene_common_api

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.