Geometrize  1.0
C++ library for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
rgba.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace geometrize
6 {
7 
12 struct rgba
13 {
14  std::uint8_t r;
15  std::uint8_t g;
16  std::uint8_t b;
17  std::uint8_t a;
18 };
19 
20 bool operator==(const geometrize::rgba& lhs, const geometrize::rgba& rhs);
21 bool operator!=(const geometrize::rgba& lhs, const geometrize::rgba& rhs);
22 
23 }
std::uint8_t a
The blue component (0-255).
Definition: rgba.h:17
std::uint8_t g
The red component (0-255).
Definition: rgba.h:15
bool operator==(const geometrize::rgba &lhs, const geometrize::rgba &rhs)
Definition: rgba.cpp:6
bool operator!=(const geometrize::rgba &lhs, const geometrize::rgba &rhs)
Definition: rgba.cpp:11
std::uint8_t b
The green component (0-255).
Definition: rgba.h:16
std::uint8_t r
Definition: rgba.h:14
The rgba struct is a helper for manipulating RGBA8888 color data.
Definition: rgba.h:12