#[repr(C)]pub struct AssetPreviewApi {Show 13 fields
pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut AssetPreviewO>,
pub destroy: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, allocator: *mut AllocatorI)>,
pub create_entity: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, result: *mut EntityT)>,
pub intercept_focus: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, root_asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *const EntityT, focus_asset: TtIdT) -> bool>,
pub reload: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *mut EntityT) -> bool>,
pub dirty: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT) -> bool>,
pub render: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>,
pub refresh_thumbnail: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>,
pub ui: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, args: *const AssetPreviewApiUiArgsT)>,
pub toolbars: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, ta: *mut TempAllocatorI, args: *const AssetPreviewApiUiArgsT) -> *mut ToolbarI>,
pub update_camera: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, cam_tm: *mut TransformT, cam_settings: *mut *const CameraSettingsT)>,
pub show_grid: bool,
pub _padding_100: [c_char; 7],
}Fields§
§create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut AssetPreviewO>§destroy: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, allocator: *mut AllocatorI)>§create_entity: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, result: *mut EntityT)>§intercept_focus: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, root_asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *const EntityT, focus_asset: TtIdT) -> bool>§reload: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *mut EntityT) -> bool>§dirty: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT) -> bool>§render: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>§refresh_thumbnail: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT)>§ui: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, args: *const AssetPreviewApiUiArgsT)>§toolbars: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, ta: *mut TempAllocatorI, args: *const AssetPreviewApiUiArgsT) -> *mut ToolbarI>§update_camera: Option<unsafe extern "C" fn(inst: *mut AssetPreviewO, tt: *mut TheTruthO, cam_tm: *mut TransformT, cam_settings: *mut *const CameraSettingsT)>§show_grid: bool§_padding_100: [c_char; 7]Implementations§
Source§impl AssetPreviewApi
impl AssetPreviewApi
pub unsafe fn create(&self, allocator: *mut AllocatorI) -> *mut AssetPreviewO
pub unsafe fn destroy( &self, inst: *mut AssetPreviewO, allocator: *mut AllocatorI, )
pub unsafe fn create_entity( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, result: *mut EntityT, )
pub unsafe fn intercept_focus( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, root_asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *const EntityT, focus_asset: TtIdT, ) -> bool
pub unsafe fn reload( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, entity_ctx: *mut EntityContextO, entity: *mut EntityT, ) -> bool
pub unsafe fn dirty( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, ) -> bool
pub unsafe fn render( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT, )
pub unsafe fn refresh_thumbnail( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, asset: TtIdT, args: *const RenderArgsT, )
pub unsafe fn ui( &self, inst: *mut AssetPreviewO, args: *const AssetPreviewApiUiArgsT, )
pub unsafe fn toolbars( &self, inst: *mut AssetPreviewO, ta: *mut TempAllocatorI, args: *const AssetPreviewApiUiArgsT, ) -> *mut ToolbarI
pub unsafe fn update_camera( &self, inst: *mut AssetPreviewO, tt: *mut TheTruthO, cam_tm: *mut TransformT, cam_settings: *mut *const CameraSettingsT, )
Trait Implementations§
Source§impl Clone for AssetPreviewApi
impl Clone for AssetPreviewApi
Source§fn clone(&self) -> AssetPreviewApi
fn clone(&self) -> AssetPreviewApi
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 AssetPreviewApi
impl Default for AssetPreviewApi
Source§fn default() -> AssetPreviewApi
fn default() -> AssetPreviewApi
Returns the “default value” for a type. Read more
impl Copy for AssetPreviewApi
Auto Trait Implementations§
impl Freeze for AssetPreviewApi
impl RefUnwindSafe for AssetPreviewApi
impl Send for AssetPreviewApi
impl Sync for AssetPreviewApi
impl Unpin for AssetPreviewApi
impl UnwindSafe for AssetPreviewApi
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