pub type XPLMCameraControl_f = Option<unsafe extern "C" fn(outCameraPosition: *mut XPLMCameraPosition_t, inIsLosingControl: c_int, inRefcon: *mut c_void) -> c_int>;Expand description
XPLMCameraControl_f
You use an XPLMCameraControl function to provide continuous control over the camera. You are passed a structure in which to put the new camera position; modify it and return 1 to reposition the camera. Return 0 to surrender control of the camera; camera control will be handled by X-Plane on this draw loop. The contents of the structure as you are called are undefined.
If X-Plane is taking camera control away from you, this function will be called with inIsLosingControl set to 1 and ioCameraPosition NULL.
Aliased Type§
pub enum XPLMCameraControl_f {
None,
Some(unsafe extern "C" fn(*mut XPLMCameraPosition_t, i32, *mut c_void) -> i32),
}