summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-11 10:35:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-11 13:35:27 +0200
commitca4544f04cc67c296e58170e76203bc11519d988 (patch)
tree2dcbe936be206c4e7f95a28525fafff6f7340e5e /compat
parent018755dab3d2a5bb0ead627b6ecad6735a9f0114 (diff)
add benchmark executable
Diffstat (limited to 'compat')
-rw-r--r--compat/headless.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/compat/headless.hpp b/compat/headless.hpp
new file mode 100644
index 00000000..6cf597bc
--- /dev/null
+++ b/compat/headless.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#ifdef __APPLE__
+#include <Magnum/Platform/WindowlessCglApplication.h>
+#define FM_APPLICATION Platform::WindowlessCglApplication
+#elif defined _WIN32
+#include <Magnum/Platform/WindowlessWglApplication.h>
+#define FM_APPLICATION Platform::WindowlessWglApplication
+#else
+#include <Magnum/Platform/WindowlessGlxApplication.h>
+#define FM_APPLICATION Platform::WindowlessGlxApplication
+#endif