XPLMAvionicsScreenCallback_f

Type Alias XPLMAvionicsScreenCallback_f 

Source
pub type XPLMAvionicsScreenCallback_f = Option<unsafe extern "C" fn(inRefcon: *mut c_void)>;
Expand description

XPLMAvionicsScreenCallback_f

This is the prototype for drawing callbacks for custom devices’ screens. Refcon is a unique value that you specify when creating the device, allowing you to slip a pointer to your own data to the callback.

Upon entry the OpenGL context will be correctly set up for you and OpenGL will be in panel coordinates for 2d drawing. The OpenGL state (texturing, etc.) will be unknown. X-Plane does not clear your screen for you between calls - this means you can re-use portions to save drawing, but otherwise you must call glClear() to erase the screen’s contents.

Aliased Type§

pub enum XPLMAvionicsScreenCallback_f {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void))

Some value of type T.