retro_hw_context_reset_t

Type Alias retro_hw_context_reset_t 

Source
pub type retro_hw_context_reset_t = Option<unsafe extern "C" fn()>;
Expand description

Invalidates the current HW context. Any GL state is lost, and must not be deinitialized explicitly. If explicit deinitialization is desired by the libretro core, it should implement context_destroy callback. If called, all GPU resources must be reinitialized. Usually called when frontend reinits video driver. Also called first time video driver is initialized, allowing libretro core to initialize resources.

Aliased Type§

pub enum retro_hw_context_reset_t {
    None,
    Some(unsafe extern "C" fn()),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn())

Some value of type T.