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 "../numeric_array.hpp"
9
#include "../aarect.hpp"
10
#include <array>
11
12
namespace
tt::pipeline_SDF {
13
14
/* A location inside the atlas where the character is located.
15
*/
16
struct
atlas_rect
{
17
i32x4
atlasPosition;
18
i32x4
atlasExtent;
19
20
std::array<f32x4,4>
textureCoords;
21
22
atlas_rect
(
i32x4
atlasPosition,
f32x4
drawExtent)
noexcept
;
23
};
24
25
}
tt::pipeline_SDF::atlas_rect
Definition
Pipeline_SDF_atlas_rect.hpp:16
tt::i32x4
A 4D vector.
Definition
ivec.hpp:38
tt::numeric_array< float, 4 >
std::array
Generated on Mon Apr 22 2024 12:53:54 for HikoGUI by
1.10.0