[][src]Struct tm_rs::ffi::tm_scene_common_api

#[repr(C)]pub struct tm_scene_common_api {
    pub init_camera: Option<unsafe extern "C" fn(*mut tm_transform_t, tm_vec3_t)>,
    pub camera_frame_bounds: Option<unsafe extern "C" fn(*mut tm_transform_t, f32, *const tm_vec3_t, *mut f32, *mut tm_vec3_t)>,
    pub find_component_render_interfaces: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *mut tm_allocator_i, *const tm_tt_id_t, u64, *const tm_entity_t, u64, bool, *mut tm_ci_render_gather_callback_args_t)>,
    pub bound_assets: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *const tm_entity_t, u64, *mut tm_vec3_t, bool)>,
    pub bound_selected_assets: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *const tm_tt_id_t, u64, *const tm_entity_t, u64, *mut tm_vec3_t, bool)>,
    pub bound_entity_asset: Option<unsafe extern "C" fn(*const tm_the_truth_o, tm_tt_id_t, *mut tm_vec3_t)>,
    pub find_shader_data_engine_update: Option<unsafe extern "C" fn(*mut tm_engine_o, *mut tm_engine_update_set_t)>,
    pub gather_shader_data_filter: Option<unsafe extern "C" fn(*mut tm_engine_o, *const u32, u32, *const tm_component_mask_t) -> bool>,
    pub find_renderables_engine_update: Option<unsafe extern "C" fn(*mut tm_engine_o, *mut tm_engine_update_set_t)>,
    pub gather_renderables_filter: Option<unsafe extern "C" fn(*mut tm_engine_o, *const u32, u32, *const tm_component_mask_t) -> bool>,
    pub add_default_light_source: Option<unsafe extern "C" fn(*mut tm_entity_context_o) -> tm_entity_t>,
    pub has_any_light_source: Option<unsafe extern "C" fn(*mut tm_entity_context_o) -> bool>,
    pub viewport_visualization_toolbar: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_entity_context_o, *mut tm_lighting_environment_settings_t, *mut tm_render_pipeline_i, *mut tm_ui_o, *const tm_ui_style_t, tm_rect_t, u32) -> tm_rect_t>,
    pub place_entity: Option<unsafe extern "C" fn(*mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, tm_tt_id_t, tm_vec3_t, tm_vec3_t, tm_tt_undo_scope_t)>,
}

Fields

init_camera: Option<unsafe extern "C" fn(*mut tm_transform_t, tm_vec3_t)>camera_frame_bounds: Option<unsafe extern "C" fn(*mut tm_transform_t, f32, *const tm_vec3_t, *mut f32, *mut tm_vec3_t)>find_component_render_interfaces: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *mut tm_allocator_i, *const tm_tt_id_t, u64, *const tm_entity_t, u64, bool, *mut tm_ci_render_gather_callback_args_t)>bound_assets: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *const tm_entity_t, u64, *mut tm_vec3_t, bool)>bound_selected_assets: Option<unsafe extern "C" fn(*mut tm_entity_context_o, u32, *const tm_the_truth_o, *const tm_tt_id_t, u64, *const tm_entity_t, u64, *mut tm_vec3_t, bool)>bound_entity_asset: Option<unsafe extern "C" fn(*const tm_the_truth_o, tm_tt_id_t, *mut tm_vec3_t)>find_shader_data_engine_update: Option<unsafe extern "C" fn(*mut tm_engine_o, *mut tm_engine_update_set_t)>gather_shader_data_filter: Option<unsafe extern "C" fn(*mut tm_engine_o, *const u32, u32, *const tm_component_mask_t) -> bool>find_renderables_engine_update: Option<unsafe extern "C" fn(*mut tm_engine_o, *mut tm_engine_update_set_t)>gather_renderables_filter: Option<unsafe extern "C" fn(*mut tm_engine_o, *const u32, u32, *const tm_component_mask_t) -> bool>add_default_light_source: Option<unsafe extern "C" fn(*mut tm_entity_context_o) -> tm_entity_t>has_any_light_source: Option<unsafe extern "C" fn(*mut tm_entity_context_o) -> bool>viewport_visualization_toolbar: Option<unsafe extern "C" fn(*mut tm_the_truth_o, *mut tm_entity_context_o, *mut tm_lighting_environment_settings_t, *mut tm_render_pipeline_i, *mut tm_ui_o, *const tm_ui_style_t, tm_rect_t, u32) -> tm_rect_t>place_entity: Option<unsafe extern "C" fn(*mut tm_the_truth_o, tm_tt_id_t, *mut tm_entity_context_o, tm_tt_id_t, tm_vec3_t, tm_vec3_t, tm_tt_undo_scope_t)>

Trait Implementations

impl Clone for tm_scene_common_api[src]

impl Copy for tm_scene_common_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.