pub type XPLMMapDrawingCallback_f = Option<unsafe extern "C" fn(inLayer: XPLMMapLayerID, inMapBoundsLeftTopRightBottom: *const f32, zoomRatio: f32, mapUnitsPerUserInterfaceUnit: f32, mapStyle: XPLMMapStyle, projection: XPLMMapProjectionID, inRefcon: *mut c_void)>;Expand description
XPLMMapDrawingCallback_f
This is the OpenGL map drawing callback for plugin-created map layers. You can perform arbitrary OpenGL drawing from this callback, with one exception: changes to the Z-buffer are not permitted, and will result in map drawing errors.
All drawing done from within this callback appears beneath all built-in X-Plane icons and labels, but above the built-in “fill” layers (layers providing major details, like terrain and water). Note, however, that the relative ordering between the drawing callbacks of different plugins is not guaranteed.
Aliased Type§
pub enum XPLMMapDrawingCallback_f {
None,
Some(unsafe extern "C" fn(*mut c_void, *const f32, f32, f32, i32, *mut c_void, *mut c_void)),
}