libyggdrasil  v1.0.0
types.hpp
Go to the documentation of this file.
1  /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * _____.___. .___ .__.__ *
3  * \__ | | ____ ____ __| _/___________ _____|__| | *
4  * / | |/ ___\ / ___\ / __ |\_ __ \__ \ / ___/ | | *
5  * \____ / /_/ > /_/ > /_/ | | | \// __ \_\___ \| | |__ *
6  * / ______\___ /\___ /\____ | |__| (____ /____ >__|____/ *
7  * \/ /_____//_____/ \/ \/ \/ *
8  * - Yggdrasil - *
9  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
10  * This software can be used by students and other personal of the *
11  * Bern University of Applied Sciences under the terms of the MIT *
12  * license. *
13  * For other persons this software is under the terms of the GNU *
14  * General Public License version 2. *
15  * *
16  * Copyright © 2021, Bern University of Applied Sciences. *
17  * All rights reserved. *
18  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
26 #pragma once
27 
28 namespace bsp::ygg {
29 
33  union RGBA8 {
34  struct {
35  u8 r, g, b, a;
36  };
38  };
39 
43  union RGBA16 {
44  struct {
45  u16 r, g, b, a;
46  };
48  };
49 
50 }
bsp::ygg::RGBA16
RGBA16 color type.
Definition: types.hpp:43
bsp::ygg::RGBA8
RGBA8 color type.
Definition: types.hpp:33
u16
uint16_t u16
Definition: types.h:37
u8
uint8_t u8
Unsigned integer definitions.
Definition: types.h:36
bsp::ygg::RGBA8::b
u8 b
Definition: types.hpp:35
u64
uint64_t u64
Definition: types.h:39
bsp::ygg::RGBA16::b
u16 b
Definition: types.hpp:45
bsp::ygg::RGBA8::r
u8 r
Definition: types.hpp:35
u32
uint32_t u32
Definition: types.h:38
bsp::ygg::RGBA8::rgba
u32 rgba
Definition: types.hpp:37
bsp::ygg::RGBA16::g
u16 g
Definition: types.hpp:45
bsp::ygg::RGBA8::g
u8 g
Definition: types.hpp:35
bsp::ygg::RGBA16::r
u16 r
Definition: types.hpp:45
bsp::ygg::RGBA16::rgba
u64 rgba
Definition: types.hpp:47
bsp::ygg
Definition: color_sensor.hpp:32
bsp::ygg::RGBA16::a
u16 a
Definition: types.hpp:45
bsp::ygg::RGBA8::a
u8 a
Definition: types.hpp:35