summaryrefslogtreecommitdiffhomepage
path: root/test/app.hpp
blob: c9bcfceebc8b39d80f8cf412ae0b76faff06ce5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <Magnum/Magnum.h>
#include <Magnum/Platform/WindowlessWglApplication.h>

#ifdef __APPLE__
#define FM_APPLICATION Platform::WindowlessCglApplication
#elif defined _WIN32
#define FM_APPLICATION Platform::WindowlessWglApplication
#else
#define FM_APPLICATION Platform::WindowlessGlxApplication
#endif

namespace floormat {
struct floormat final : private FM_APPLICATION
{
    explicit floormat(const Arguments& arguments);
    ~floormat();
    int exec() override;
    static bool test_json();
    static bool test_tile_iter();
    static bool test_const_math();
    static bool test_serializer();
};
} // namespace floormat