cesium-native 0.50.0
Loading...
Searching...
No Matches
Color.h
1#pragma once
2
3#include <cstdint>
4
5namespace CesiumUtility {
9struct Color {
11 uint8_t r;
13 uint8_t g;
15 uint8_t b;
17 uint8_t a;
18
27 Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 0xff);
28
33 uint32_t toRgba32() const;
34};
35} // namespace CesiumUtility
Utility classes for Cesium.
uint8_t r
The red component.
Definition Color.h:11
uint32_t toRgba32() const
Converts this color to a packed 32-bit number in the form 0xAARRGGBB.
Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a=0xff)
Creates a new Color from the given components.
uint8_t g
The green component.
Definition Color.h:13
uint8_t b
The blue component.
Definition Color.h:15
uint8_t a
The alpha component.
Definition Color.h:17