sdlCloseCamera function

void sdlCloseCamera(
  1. Pointer<SdlCamera> camera
)

Use this function to shut down camera processing and close the camera device.

\param camera opened camera device.

\threadsafety It is safe to call this function from any thread, but no thread may reference device once this function is called.

\since This function is available since SDL 3.1.3.

\sa SDL_OpenCamera

extern SDL_DECLSPEC void SDLCALL SDL_CloseCamera(SDL_Camera *camera)

Implementation

void sdlCloseCamera(Pointer<SdlCamera> camera) {
  final sdlCloseCameraLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlCamera> camera),
      void Function(Pointer<SdlCamera> camera)>('SDL_CloseCamera');
  return sdlCloseCameraLookupFunction(camera);
}