HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
vertical_sync_macos.hpp
1// Copyright Take Vos 2019-2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "vertical_sync_base.hpp"
8#include <span>
9#include <thread>
10
11typedef struct __CVDisplayLink CVDisplayLinkRef;
12
13namespace tt {
14
15class vertical_sync_macos final : public vertical_sync_base {
16private:
17 CVDisplayLinkRef *displayLink;
18
19public:
20 vertical_sync_macos(std::function<void(void *,hires_utc_clock::time_point)> callback, void *callbackData) noexcept;
22};
23
24}
Definition vertical_sync_macos.hpp:15