winrt-capture.h 985 B

1234567891011121314151617181920212223242526272829303132
  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,
  11. BOOL client_area);
  12. EXPORT struct winrt_capture *winrt_capture_init_monitor(BOOL cursor,
  13. HMONITOR monitor);
  14. EXPORT void winrt_capture_free(struct winrt_capture *capture);
  15. EXPORT BOOL winrt_capture_active(const struct winrt_capture *capture);
  16. EXPORT BOOL winrt_capture_show_cursor(struct winrt_capture *capture,
  17. BOOL visible);
  18. EXPORT void winrt_capture_render(struct winrt_capture *capture);
  19. EXPORT uint32_t winrt_capture_width(const struct winrt_capture *capture);
  20. EXPORT uint32_t winrt_capture_height(const struct winrt_capture *capture);
  21. EXPORT void winrt_capture_thread_start();
  22. EXPORT void winrt_capture_thread_stop();
  23. #ifdef __cplusplus
  24. }
  25. #endif