summaryrefslogtreecommitdiffhomepage
path: root/test/app.hpp
blob: 46ea3fc00aacae84156065e5b908e858abd39c15 (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
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <Magnum/Magnum.h>

#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

namespace floormat {

struct chunk;

struct test_app final : private FM_APPLICATION
{
    using Application = FM_APPLICATION;
    explicit test_app(const Arguments& arguments);
    ~test_app();
    int exec() override;
    static chunk make_test_chunk();
    static void test_json();
    static void test_tile_iter();
    static void test_const_math();
    static void test_serializer();
    static void test_entity();
    static void test_quadtree();
    static void test_loader();
    static void test_bbox();
};
} // namespace floormat