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 "../numeric_array.hpp"
9#include "../aarect.hpp"
10#include <array>
11
12namespace tt::pipeline_SDF {
13
14/* A location inside the atlas where the character is located.
15 */
16struct 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}
Definition pipeline_SDF_atlas_rect.hpp:16
A 4D vector.
Definition ivec.hpp:38