pub type XPLMMapIconDrawingCallback_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
XPLMMapIconDrawingCallback_f
This is the icon drawing callback that enables plugin-created map layers to draw icons using X-Plane’s built-in icon drawing functionality. You can request an arbitrary number of PNG icons to be drawn via XPLMDrawMapIconFromSheet() from within this callback, but you may not perform any OpenGL drawing here.
Icons enqueued by this function will appear above all OpenGL drawing (performed by your optional XPLMMapDrawingCallback_f), and above all built-in X-Plane map icons of the same layer type (“fill” or “markings,” as determined by the XPLMMapLayerType in your XPLMCreateMapLayer_t). Note, however, that the relative ordering between the drawing callbacks of different plugins is not guaranteed.
Aliased Type§
pub enum XPLMMapIconDrawingCallback_f {
None,
Some(unsafe extern "C" fn(*mut c_void, *const f32, f32, f32, i32, *mut c_void, *mut c_void)),
}