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

namespace cv {
template<typename T> class Mat_;
template<typename T, int cn> class Vec;
typedef Vec<unsigned char, 4> Vec4b;
typedef Mat_<Vec4b> Mat4b;
} // namespace cv

namespace floormat::wall_tool {

struct options
{
    String input_dir, input_file, output_dir;
};

struct state
{
    options& opts;
    cv::Mat4b& buffer;
    const wall_atlas_def& old_atlas;
    wall_atlas_def& new_atlas;
    int& error;
};

} // namespace floormat::wall_tool