#[repr(C)]pub struct SceneCommonApi {Show 19 fields
pub init_camera: Option<unsafe extern "C" fn(camera: *mut TransformT, translation: Vec3T)>,
pub camera_frame_bounds: Option<unsafe extern "C" fn(camera: *mut TransformT, camera_y_fov: f32, bounds: *const Vec3T, translation_speed: *mut f32, focus_point: *mut Vec3T)>,
pub find_component_render_interfaces: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, allocator: *mut AllocatorI, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, include_entities_without_render_components: bool, res: *mut CiRenderGatherCallbackArgsT)>,
pub bound_assets: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool)>,
pub bound_selected_assets: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool)>,
pub bound_entity_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, entity: TtIdT, bounds: *mut Vec3T)>,
pub find_shader_data_engine_update: Option<unsafe extern "C" fn(inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO)>,
pub gather_shader_data_filter: Option<unsafe extern "C" fn(inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT) -> bool>,
pub find_renderables_engine_update: Option<unsafe extern "C" fn(inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO)>,
pub gather_renderables_filter: Option<unsafe extern "C" fn(inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT) -> bool>,
pub add_default_light_source: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO) -> EntityT>,
pub has_any_light_source: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> bool>,
pub component_visualization_menu: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, ui: *mut UiO, uistyle: *const UiStyleT, tab: *mut TabI, pos: Vec2T)>,
pub viewport_visualization_toolbar: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, le_settings: *mut LightingEnvironmentSettingsT, statistics_overlays: *mut StatisticsOverlaysT, render_pipeline: *mut RenderPipelineI, ui: *mut UiO, uistyle: *const UiStyleT, tab: *mut TabI, toolbar_r: RectT, toolbar_draw_mode: u32) -> RectT>,
pub statistics_menu: Option<unsafe extern "C" fn(statistics_overlays: *mut StatisticsOverlaysT, ui: *mut UiO, uistyle: *const UiStyleT, pos: Vec2T)>,
pub statistics_overlay_toolbars: Option<unsafe extern "C" fn(statistics_overlays: *mut StatisticsOverlaysT, ta: *mut TempAllocatorI) -> *mut ToolbarI>,
pub place_entity: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity: TtIdT, local_transform: *const TransformT, parent: TtIdT, undo_scope: TtUndoScopeT)>,
pub select_entity: Option<unsafe extern "C" fn(tt: *mut TheTruthO, tab: *mut TabI, entity: TtIdT, undo_scope: TtUndoScopeT)>,
pub select_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, tab: *mut TabI, component: TtIdT, undo_scope: TtUndoScopeT)>,
}Fields§
§init_camera: Option<unsafe extern "C" fn(camera: *mut TransformT, translation: Vec3T)>§camera_frame_bounds: Option<unsafe extern "C" fn(camera: *mut TransformT, camera_y_fov: f32, bounds: *const Vec3T, translation_speed: *mut f32, focus_point: *mut Vec3T)>§find_component_render_interfaces: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, allocator: *mut AllocatorI, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, include_entities_without_render_components: bool, res: *mut CiRenderGatherCallbackArgsT)>§bound_assets: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool)>§bound_selected_assets: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool)>§bound_entity_asset: Option<unsafe extern "C" fn(tt: *const TheTruthO, entity: TtIdT, bounds: *mut Vec3T)>§find_shader_data_engine_update: Option<unsafe extern "C" fn(inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO)>§gather_shader_data_filter: Option<unsafe extern "C" fn(inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT) -> bool>§find_renderables_engine_update: Option<unsafe extern "C" fn(inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO)>§gather_renderables_filter: Option<unsafe extern "C" fn(inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT) -> bool>§add_default_light_source: Option<unsafe extern "C" fn(entity_ctx: *mut EntityContextO) -> EntityT>§has_any_light_source: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> bool>§viewport_visualization_toolbar: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, le_settings: *mut LightingEnvironmentSettingsT, statistics_overlays: *mut StatisticsOverlaysT, render_pipeline: *mut RenderPipelineI, ui: *mut UiO, uistyle: *const UiStyleT, tab: *mut TabI, toolbar_r: RectT, toolbar_draw_mode: u32) -> RectT>§statistics_overlay_toolbars: Option<unsafe extern "C" fn(statistics_overlays: *mut StatisticsOverlaysT, ta: *mut TempAllocatorI) -> *mut ToolbarI>§place_entity: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity: TtIdT, local_transform: *const TransformT, parent: TtIdT, undo_scope: TtUndoScopeT)>§select_entity: Option<unsafe extern "C" fn(tt: *mut TheTruthO, tab: *mut TabI, entity: TtIdT, undo_scope: TtUndoScopeT)>§select_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, tab: *mut TabI, component: TtIdT, undo_scope: TtUndoScopeT)>Implementations§
Source§impl SceneCommonApi
impl SceneCommonApi
pub unsafe fn init_camera(&self, camera: *mut TransformT, translation: Vec3T)
pub unsafe fn camera_frame_bounds( &self, camera: *mut TransformT, camera_y_fov: f32, bounds: *const Vec3T, translation_speed: *mut f32, focus_point: *mut Vec3T, )
pub unsafe fn find_component_render_interfaces( &self, entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, allocator: *mut AllocatorI, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, include_entities_without_render_components: bool, res: *mut CiRenderGatherCallbackArgsT, )
pub unsafe fn bound_assets( &self, entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool, )
pub unsafe fn bound_selected_assets( &self, entity_ctx: *mut EntityContextO, transform_component: ComponentTypeT, tt: *const TheTruthO, selection: *const TtIdT, selection_n: u64, ignore: *const EntityT, ignore_n: u64, bounds: *mut Vec3T, include_origo: bool, )
pub unsafe fn bound_entity_asset( &self, tt: *const TheTruthO, entity: TtIdT, bounds: *mut Vec3T, )
pub unsafe fn find_shader_data_engine_update( &self, inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO, )
pub unsafe fn gather_shader_data_filter( &self, inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT, ) -> bool
pub unsafe fn find_renderables_engine_update( &self, inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO, )
pub unsafe fn gather_renderables_filter( &self, inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT, ) -> bool
pub unsafe fn add_default_light_source( &self, entity_ctx: *mut EntityContextO, ) -> EntityT
pub unsafe fn has_any_light_source(&self, ctx: *mut EntityContextO) -> bool
pub unsafe fn viewport_visualization_toolbar( &self, tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, le_settings: *mut LightingEnvironmentSettingsT, statistics_overlays: *mut StatisticsOverlaysT, render_pipeline: *mut RenderPipelineI, ui: *mut UiO, uistyle: *const UiStyleT, tab: *mut TabI, toolbar_r: RectT, toolbar_draw_mode: u32, ) -> RectT
pub unsafe fn statistics_overlay_toolbars( &self, statistics_overlays: *mut StatisticsOverlaysT, ta: *mut TempAllocatorI, ) -> *mut ToolbarI
pub unsafe fn place_entity( &self, tt: *mut TheTruthO, entity: TtIdT, local_transform: *const TransformT, parent: TtIdT, undo_scope: TtUndoScopeT, )
pub unsafe fn select_entity( &self, tt: *mut TheTruthO, tab: *mut TabI, entity: TtIdT, undo_scope: TtUndoScopeT, )
pub unsafe fn select_component( &self, tt: *mut TheTruthO, tab: *mut TabI, component: TtIdT, undo_scope: TtUndoScopeT, )
Trait Implementations§
Source§impl Clone for SceneCommonApi
impl Clone for SceneCommonApi
Source§fn clone(&self) -> SceneCommonApi
fn clone(&self) -> SceneCommonApi
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 moreSource§impl Default for SceneCommonApi
impl Default for SceneCommonApi
Source§fn default() -> SceneCommonApi
fn default() -> SceneCommonApi
Returns the “default value” for a type. Read more
impl Copy for SceneCommonApi
Auto Trait Implementations§
impl Freeze for SceneCommonApi
impl RefUnwindSafe for SceneCommonApi
impl Send for SceneCommonApi
impl Sync for SceneCommonApi
impl Unpin for SceneCommonApi
impl UnwindSafe for SceneCommonApi
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