HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
pipeline_SDF_atlas_rect.hpp
1// Copyright Take Vos 2020.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../required.hpp"
8#include "../geometry/axis_aligned_rectangle.hpp"
9#include "../geometry/extent.hpp"
10#include "../geometry/point.hpp"
11#include <array>
12
13namespace tt::pipeline_SDF {
14
15/* A location inside the atlas where the character is located.
16 */
17struct atlas_rect {
18 point3 atlas_position;
19 extent2 size;
20
21 std::array<point3, 4> texture_coordinates;
22
23 atlas_rect(point3 atlas_position, extent2 size) noexcept;
24};
25
26}
Definition pipeline_SDF_atlas_rect.hpp:17