Euphoria
color.h
Go to the documentation of this file.
1#pragma once
2
3namespace eu::core
4{
5
6
9enum class SingleColor : std::uint32_t {};
10
18 return static_cast<SingleColor>((static_cast<uint32_t>(a) << 24) |
19 (static_cast<uint32_t>(b) << 16) |
20 (static_cast<uint32_t>(g) << 8) |
21 (static_cast<uint32_t>(r)));
22}
23
24
25}
constexpr SingleColor color_from_rgba(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
Constructs a SingleColor value from individual red, green, blue, and alpha components.
Definition color.h:17
SingleColor
A single color in a format to load directly into open gl texture(ABGR on little endian).
Definition color.h:9
A (inclusive) range between two values.
Definition range.h:19