HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GUI
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
13
namespace
tt::pipeline_SDF {
14
15
/* A location inside the atlas where the character is located.
16
*/
17
struct
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
}
tt::geo::extent< 2 >
tt::geo::point< 3 >
tt::pipeline_SDF::atlas_rect
Definition
pipeline_SDF_atlas_rect.hpp:17
std::array
Generated on Mon Apr 22 2024 12:53:42 for HikoGUI by
1.10.0