winrt-capture.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #define WIN32_LEAN_AND_MEAN
  3. #include <windows.h>
  4. #include <obs-module.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. EXPORT BOOL winrt_capture_supported();
  9. EXPORT BOOL winrt_capture_cursor_toggle_supported();
  10. EXPORT struct winrt_capture *winrt_capture_init_window(BOOL cursor, HWND window, BOOL client_area, BOOL force_sdr);
  11. EXPORT struct winrt_capture *winrt_capture_init_monitor(BOOL cursor, HMONITOR monitor, BOOL force_sdr);
  12. EXPORT void winrt_capture_free(struct winrt_capture *capture);
  13. EXPORT BOOL winrt_capture_active(const struct winrt_capture *capture);
  14. EXPORT BOOL winrt_capture_show_cursor(struct winrt_capture *capture, BOOL visible);
  15. EXPORT enum gs_color_space winrt_capture_get_color_space(const struct winrt_capture *capture);
  16. EXPORT void winrt_capture_render(struct winrt_capture *capture);
  17. EXPORT uint32_t winrt_capture_width(const struct winrt_capture *capture);
  18. EXPORT uint32_t winrt_capture_height(const struct winrt_capture *capture);
  19. EXPORT void winrt_capture_thread_start();
  20. EXPORT void winrt_capture_thread_stop();
  21. #ifdef __cplusplus
  22. }
  23. #endif