Skip to main content

Crate camlet

Crate camlet 

Source
Expand description

Crate for making plug-ins for the webcam application camlet.

See https://camlet.pommicket.com/doc/quickstart_rust.html for a guide on how to use this library.

Structs§

Command
A command from camlet to the plug-in.
CommandCameraConnected
_camera_connected command — sent whenever a new camera is connected.
CommandCameraDisconnected
_camera_disconnected command — sent whenever a camera is disconnected.
CommandFrame
frame command — sent whenever a new frame is rendered.
CommandGrabbed
_grabbed command — sent when a texture is “grabbed”
CommandInit
init command — sent when the plug-in is loaded.
CommandKeyDown
_key_down command — sent whenever the user presses a key.
CommandKeyUp
_key_up command — sent whenever the user releases a key.
CommandMouseDown
_mouse_down command — Sent whenever a mouse button is pressed.
CommandMouseScroll
_mouse_scroll command — Sent whenever the mouse is scrolled.
CommandMouseUp
_mouse_up command — Sent whenever a mouse button is released.
CommandPhoto
photo command — sent when a photo is about to be taken.
CommandPhotoError
_photo_error command — Sent when a photo fails to be taken.
CommandPhotoOk
_photo_ok command — Sent when a photo is saved to disk.
CommandQuit
quit command — sent when camlet quits.
CommandSetting
_setting command — sent when a setting value is set/changed.
CommandVideoStart
video_start command — Sent when a video recording is about to start.
CommandVideoStarted
_video_started command — Sent when a video recording is started.
CommandVideoStop
_video_stop command — Sent when a video recording is stopped.
Error
Some kind of error
Shader
A shader for camlet

Enums§

DownloadFormat
Format for downloading textures with CommandFrame::download_texture.
PhotoFormat
File format for photo
TextureSource
Source of a texture for CommandGrabbed.

Traits§

Plugin
A camlet plug-in
UniformValue
A value which can be passed through a shader uniform

Functions§

run
Run a plug-in, printing errors to standard error, and returning an ExitCode which you can return from main.
try_run
Run a plug-in, returning a result for custom error handling.