HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
vertical_sync.hpp
1// Copyright Take Vos 2019.
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 "../os_detect.hpp"
8
9#if TT_OPERATING_SYSTEM == TT_OS_WINDOWS
10#include "vertical_sync_win32.hpp"
11namespace tt {
12using vertical_sync = vertical_sync_win32;
13}
14
15#elif TT_OPERATING_SYSTEM == TT_OS_MACOS
16#include "vertical_sync_macos.hpp"
17namespace tt {
18using vertical_sync = vertical_sync_macos;
19}
20
21#else
22#error "vertical_sync not implemented for os"
23#endif