HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
quad_color.hpp
Go to the documentation of this file.
1// Copyright Take Vos 2021.
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
9#pragma once
10
11#include "color.hpp"
12#include "../macros.hpp"
13
14namespace hi {
15inline namespace v1 {
16
21public:
26
27 constexpr quad_color(quad_color const &) noexcept = default;
28 constexpr quad_color(quad_color &&) noexcept = default;
33 p0(p0), p1(p1), p2(p2), p3(p3)
34 {
35 }
36 constexpr quad_color(color const &c) noexcept : p0(c), p1(c), p2(c), p3(c) {}
37};
38
39}} // namespace hi::inline v1
40
Defined the color type.
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
This is a RGBA floating point color.
Definition color.hpp:45
A color for each corner of a quad.
Definition quad_color.hpp:20
color p0
left-bottom
Definition quad_color.hpp:22
color p2
left-top
Definition quad_color.hpp:24
color p3
right-top
Definition quad_color.hpp:25
color p1
right-bottom
Definition quad_color.hpp:23