summaryrefslogtreecommitdiffhomepage
path: root/wall-tileset-tool/main.hpp
blob: 7584797a5d93de274563afe7ad5c064ee7298b7b (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
#pragma once
#include "src/wall-atlas.hpp"
#include <vector>
#include <opencv2/core/mat.hpp>

namespace floormat::wall_tool {

struct options
{
    String input_dir, input_file, output_dir;
    bool use_alpha = false;
};

struct frame
{
    cv::Mat4b mat;
    Vector2ui offset, size;
};

struct state
{
    options& opts;
    const wall_atlas_def& old_atlas;
    wall_atlas_def& new_atlas;
    std::vector<frame>& frames;
    cv::Mat4b& dest;
    int& error;
};

} // namespace floormat::wall_tool