pub type retro_video_refresh_t = Option<unsafe extern "C" fn(data: *const c_void, width: c_uint, height: c_uint, pitch: usize)>;Expand description
Render a frame. Pixel format is 15-bit 0RGB1555 native endian unless changed (see RETRO_ENVIRONMENT_SET_PIXEL_FORMAT).
Width and height specify dimensions of buffer. Pitch specifices length in bytes between two lines in buffer.
For performance reasons, it is highly recommended to have a frame that is packed in memory, i.e. pitch == width * byte_per_pixel. Certain graphic APIs, such as OpenGL ES, do not like textures that are not packed in memory.
Aliased Type§
pub enum retro_video_refresh_t {
None,
Some(unsafe extern "C" fn(*const c_void, u32, u32, usize)),
}