summaryrefslogtreecommitdiffhomepage
path: root/src/tile-image.hpp
blob: 6c90a2d5decb3c0a375391052e56fb32a562e6a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "compat/integer-types.hpp"
#include <compare>
#include <memory>

namespace floormat {

struct tile_atlas;

struct tile_image final
{
    std::shared_ptr<tile_atlas> atlas;
    std::uint16_t variant = (std::uint16_t)-1;

    explicit operator bool() const noexcept { return !!atlas; }
};

bool operator==(const tile_image& a, const tile_image& b) noexcept;

} // namespace floormat