SceneCommonApi

Struct SceneCommonApi 

Source
#[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>§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)>§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_menu: Option<unsafe extern "C" fn(statistics_overlays: *mut StatisticsOverlaysT, ui: *mut UiO, uistyle: *const UiStyleT, pos: Vec2T)>§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

Source

pub unsafe fn init_camera(&self, camera: *mut TransformT, translation: Vec3T)

Source

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, )

Source

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, )

Source

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, )

Source

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, )

Source

pub unsafe fn bound_entity_asset( &self, tt: *const TheTruthO, entity: TtIdT, bounds: *mut Vec3T, )

Source

pub unsafe fn find_shader_data_engine_update( &self, inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO, )

Source

pub unsafe fn gather_shader_data_filter( &self, inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT, ) -> bool

Source

pub unsafe fn find_renderables_engine_update( &self, inst: *mut EngineO, data: *mut EngineUpdateSetT, commands: *mut EntityCommandsO, )

Source

pub unsafe fn gather_renderables_filter( &self, inst: *mut EngineO, components: *const ComponentTypeT, num_components: u32, mask: *const ComponentMaskT, ) -> bool

Source

pub unsafe fn add_default_light_source( &self, entity_ctx: *mut EntityContextO, ) -> EntityT

Source

pub unsafe fn has_any_light_source(&self, ctx: *mut EntityContextO) -> bool

Source

pub unsafe fn component_visualization_menu( &self, tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, ui: *mut UiO, uistyle: *const UiStyleT, tab: *mut TabI, pos: Vec2T, )

Source

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

Source

pub unsafe fn statistics_menu( &self, statistics_overlays: *mut StatisticsOverlaysT, ui: *mut UiO, uistyle: *const UiStyleT, pos: Vec2T, )

Source

pub unsafe fn statistics_overlay_toolbars( &self, statistics_overlays: *mut StatisticsOverlaysT, ta: *mut TempAllocatorI, ) -> *mut ToolbarI

Source

pub unsafe fn place_entity( &self, tt: *mut TheTruthO, entity: TtIdT, local_transform: *const TransformT, parent: TtIdT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn select_entity( &self, tt: *mut TheTruthO, tab: *mut TabI, entity: TtIdT, undo_scope: TtUndoScopeT, )

Source

pub unsafe fn select_component( &self, tt: *mut TheTruthO, tab: *mut TabI, component: TtIdT, undo_scope: TtUndoScopeT, )

Trait Implementations§

Source§

impl Api for SceneCommonApi

Source§

impl Clone for SceneCommonApi

Source§

fn clone(&self) -> SceneCommonApi

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 Default for SceneCommonApi

Source§

fn default() -> SceneCommonApi

Returns the “default value” for a type. Read more
Source§

impl Copy for SceneCommonApi

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.