pub unsafe fn get_camera_interface(
callback: retro_environment_t,
data: retro_camera_callback,
) -> Option<retro_camera_callback>
Expand description
Unstable
Gets an interface to a video camera driver.
A libretro core can use this interface to get access to a
video camera.
New video frames are delivered in a callback in same
thread as Core::on_run
.
get_camera_interface
should be called in Core::on_load_game
.
Depending on the camera implementation used, camera frames will be delivered as a raw framebuffer, or as an OpenGL texture directly.
The core has to tell the frontend here which types of
buffers can be handled properly.
An OpenGL texture can only be handled when using a
libretro GL core (set_hw_render
).
It is recommended to use a libretro GL core when
using camera interface.
The camera is not started automatically. The retrieved start/stop functions must be used to explicitly
ยงThis feature is unstable and guarded by the unstable-env-commands
feature flag.
Please be advised that this feature might change without further notice and no guarantees about its stability can be made.