Threw claude at the problem - webcam works now
This commit is contained in:
1 parent
7c94e99f58
commit
62c72f978a
3 files changed
+94
-113
No files matched your search
@@ -193,6 +193,9 @@ opaque renderTexture (renderer : @& SDLRenderer) (texture : @& SDLTexture) (srcX
|
||||
@[extern "sdl_render_texture_rect"]
|
||||
opaque renderTextureRect (renderer : @& SDLRenderer) (texture : @& SDLTexture) (sourceRect : SDLFRect) (destRect : SDLFRect): SDLIO Bool
|
||||
|
||||
@[extern "sdl_render_texture_fullscreen"]
|
||||
opaque renderTextureFullscreen (renderer : @& SDLRenderer) (texture : @& SDLTexture) : SDLIO Bool
|
||||
|
||||
@[extern "sdl_get_texture_width"]
|
||||
opaque getTextureWidth (texture : @& SDLTexture) : SDLIO Int64
|
||||
|
||||
@@ -293,10 +296,8 @@ end CameraSpec
|
||||
opaque getCameraFormat : @& SDLCamera -> SDLIO CameraSpec
|
||||
|
||||
@[extern "sdl_acquire_camera_frame"]
|
||||
opaque acquireCameraFrame : (camera : @& SDLCamera) → SDLIO SDLSurface
|
||||
opaque acquireCameraFrame : (camera : @& SDLCamera) → IO (Option SDLSurface)
|
||||
-- TODO: support returning the timestampNS too
|
||||
/- @[extern "sdl_acquire_camera_frame"] -/
|
||||
/- opaque acquireCameraFrame : (camera : @& SDLCamera) → SDLIO (SDLSurface × UInt64) -/
|
||||
|
||||
@[extern "sdl_release_camera_frame"]
|
||||
opaque releaseCameraFrame (camera : @& SDLCamera) (frame: SDLSurface): IO Unit
|
||||
|
||||
Reference in new issue
Block a user