XPLMAvionicsBezelCallback_f

Type Alias XPLMAvionicsBezelCallback_f 

Source
pub type XPLMAvionicsBezelCallback_f = Option<unsafe extern "C" fn(inAmbiantR: f32, inAmbiantG: f32, inAmbiantB: f32, inRefcon: *mut c_void)>;
Expand description

XPLMAvionicsBezelCallback_f

This is the prototype for drawing callbacks for custom devices’ bezel. You are passed in the red, green, and blue values you can optinally use for tinting your bezel accoring to ambiant light.

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.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.