#[repr(C)]pub struct BakerContextApi {
pub create_context: Option<unsafe extern "C" fn(a: *mut AllocatorI, tt: *mut TheTruthO, asset_root: TtIdT, render_pipe: *mut RenderPipelineVt) -> *mut BakerContextO>,
pub destroy_context: Option<unsafe extern "C" fn(context: *mut BakerContextO)>,
pub entity_context: Option<unsafe extern "C" fn(context: *mut BakerContextO) -> *mut EntityContextO>,
pub set_entity: Option<unsafe extern "C" fn(context: *mut BakerContextO, e: EntityT)>,
pub render_args: Option<unsafe extern "C" fn(context: *mut BakerContextO, args: *mut ViewerRenderArgsT)>,
pub set_camera: Option<unsafe extern "C" fn(context: *mut BakerContextO, camera_tm: *const TransformT, camera_settings: *const CameraSettingsT)>,
}Fields§
§create_context: Option<unsafe extern "C" fn(a: *mut AllocatorI, tt: *mut TheTruthO, asset_root: TtIdT, render_pipe: *mut RenderPipelineVt) -> *mut BakerContextO>§destroy_context: Option<unsafe extern "C" fn(context: *mut BakerContextO)>§entity_context: Option<unsafe extern "C" fn(context: *mut BakerContextO) -> *mut EntityContextO>§set_entity: Option<unsafe extern "C" fn(context: *mut BakerContextO, e: EntityT)>§render_args: Option<unsafe extern "C" fn(context: *mut BakerContextO, args: *mut ViewerRenderArgsT)>§set_camera: Option<unsafe extern "C" fn(context: *mut BakerContextO, camera_tm: *const TransformT, camera_settings: *const CameraSettingsT)>Implementations§
Source§impl BakerContextApi
impl BakerContextApi
pub unsafe fn create_context( &self, a: *mut AllocatorI, tt: *mut TheTruthO, asset_root: TtIdT, render_pipe: *mut RenderPipelineVt, ) -> *mut BakerContextO
pub unsafe fn destroy_context(&self, context: *mut BakerContextO)
pub unsafe fn entity_context( &self, context: *mut BakerContextO, ) -> *mut EntityContextO
pub unsafe fn set_entity(&self, context: *mut BakerContextO, e: EntityT)
pub unsafe fn render_args( &self, context: *mut BakerContextO, args: *mut ViewerRenderArgsT, )
pub unsafe fn set_camera( &self, context: *mut BakerContextO, camera_tm: *const TransformT, camera_settings: *const CameraSettingsT, )
Trait Implementations§
Source§impl Clone for BakerContextApi
impl Clone for BakerContextApi
Source§fn clone(&self) -> BakerContextApi
fn clone(&self) -> BakerContextApi
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 BakerContextApi
impl Default for BakerContextApi
Source§fn default() -> BakerContextApi
fn default() -> BakerContextApi
Returns the “default value” for a type. Read more
impl Copy for BakerContextApi
Auto Trait Implementations§
impl Freeze for BakerContextApi
impl RefUnwindSafe for BakerContextApi
impl Send for BakerContextApi
impl Sync for BakerContextApi
impl Unpin for BakerContextApi
impl UnwindSafe for BakerContextApi
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