2019-11-27 16:38:10 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <obs-module.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-03-07 09:27:58 -08:00
|
|
|
EXPORT BOOL winrt_capture_supported();
|
|
|
|
EXPORT BOOL winrt_capture_cursor_toggle_supported();
|
|
|
|
EXPORT struct winrt_capture *winrt_capture_init(BOOL cursor, HWND window,
|
2020-03-18 00:33:12 -07:00
|
|
|
BOOL client_area);
|
2019-11-27 16:38:10 -08:00
|
|
|
EXPORT void winrt_capture_free(struct winrt_capture *capture);
|
|
|
|
|
2020-05-06 21:32:57 -07:00
|
|
|
EXPORT BOOL winrt_capture_supported(const struct winrt_capture *capture);
|
2020-03-07 09:27:58 -08:00
|
|
|
EXPORT void winrt_capture_show_cursor(struct winrt_capture *capture,
|
|
|
|
BOOL visible);
|
2019-11-27 16:38:10 -08:00
|
|
|
EXPORT void winrt_capture_render(struct winrt_capture *capture,
|
|
|
|
gs_effect_t *effect);
|
2020-02-24 21:21:52 -08:00
|
|
|
EXPORT uint32_t winrt_capture_width(const struct winrt_capture *capture);
|
|
|
|
EXPORT uint32_t winrt_capture_height(const struct winrt_capture *capture);
|
2019-11-27 16:38:10 -08:00
|
|
|
|
2020-05-21 00:23:14 -07:00
|
|
|
EXPORT void winrt_capture_thread_start();
|
|
|
|
EXPORT void winrt_capture_thread_stop();
|
|
|
|
|
2019-11-27 16:38:10 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|