Struct unity_native_plugin_sys::IUnityGraphics
source · #[repr(C)]pub struct IUnityGraphics {
pub GetRenderer: Option<unsafe extern "system" fn() -> UnityGfxRenderer>,
pub RegisterDeviceEventCallback: Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
pub UnregisterDeviceEventCallback: Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>,
pub ReserveEventIDRange: Option<unsafe extern "system" fn(count: c_int) -> c_int>,
}
Fields§
§GetRenderer: Option<unsafe extern "system" fn() -> UnityGfxRenderer>
§RegisterDeviceEventCallback: Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>
§UnregisterDeviceEventCallback: Option<unsafe extern "system" fn(callback: IUnityGraphicsDeviceEventCallback)>
§ReserveEventIDRange: Option<unsafe extern "system" fn(count: c_int) -> c_int>
Trait Implementations§
source§impl Clone for IUnityGraphics
impl Clone for IUnityGraphics
source§fn clone(&self) -> IUnityGraphics
fn clone(&self) -> IUnityGraphics
Returns a copy 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 IUnityGraphics
impl Default for IUnityGraphics
source§fn default() -> IUnityGraphics
fn default() -> IUnityGraphics
Returns the “default value” for a type. Read more
impl Copy for IUnityGraphics
Auto Trait Implementations§
impl Freeze for IUnityGraphics
impl RefUnwindSafe for IUnityGraphics
impl Send for IUnityGraphics
impl Sync for IUnityGraphics
impl Unpin for IUnityGraphics
impl UnwindSafe for IUnityGraphics
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)