cesium-native 0.50.0
Loading...
Searching...
No Matches
CesiumUtility::Color Struct Reference

Represents an RGBA color value. More...

#include <CesiumUtility/Color.h>

Public Member Functions

 Color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=0xff)
 Creates a new Color from the given components.
 
uint32_t toRgba32 () const
 Converts this color to a packed 32-bit number in the form 0xAARRGGBB.
 

Public Attributes

uint8_t r
 The red component.
 
uint8_t g
 The green component.
 
uint8_t b
 The blue component.
 
uint8_t a
 The alpha component.
 

Detailed Description

Represents an RGBA color value.

Definition at line 9 of file Color.h.

Constructor & Destructor Documentation

◆ Color()

CesiumUtility::Color::Color ( uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a = 0xff )

Creates a new Color from the given components.

Parameters
rThe red component.
gThe green component.
bThe blue component.
aThe alpha component.

Member Data Documentation

◆ a

uint8_t CesiumUtility::Color::a

The alpha component.

Definition at line 17 of file Color.h.

◆ b

uint8_t CesiumUtility::Color::b

The blue component.

Definition at line 15 of file Color.h.

◆ g

uint8_t CesiumUtility::Color::g

The green component.

Definition at line 13 of file Color.h.

◆ r

uint8_t CesiumUtility::Color::r

The red component.

Definition at line 11 of file Color.h.


The documentation for this struct was generated from the following file: