Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Private Attributes | List of all members
AMP::RGBA32 Class Referencefinal

Structure to store RGBA data. More...

#include <RGBA.h>

Public Member Functions

constexpr uint8_t alpha () const
 
constexpr uint8_t blue () const
 
constexpr uint8_t green () const
 
constexpr operator double ()
 
constexpr operator float ()
 
constexpr operator uint16_t ()
 
constexpr operator uint32_t ()
 
constexpr operator uint8_t ()
 
constexpr bool operator== (const RGBA32 &rhs) const
 
constexpr uint8_t red () const
 
constexpr RGBA32 ()
 
constexpr RGBA32 (ARGB32 x)
 Conversions.
 
constexpr RGBA32 (uint32_t x)
 
constexpr RGBA32 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
 
constexpr RGBA32 (uint8_t x)
 

Private Attributes

uint32_t data
 

Detailed Description

Structure to store RGBA data.

Definition at line 21 of file RGBA.h.

Constructor & Destructor Documentation

◆ RGBA32() [1/5]

constexpr AMP::RGBA32::RGBA32 ( )
inlineconstexpr

Definition at line 24 of file RGBA.h.

◆ RGBA32() [2/5]

constexpr AMP::RGBA32::RGBA32 ( uint8_t  x)
inlineexplicitconstexpr

Definition at line 25 of file RGBA.h.

◆ RGBA32() [3/5]

constexpr AMP::RGBA32::RGBA32 ( uint8_t  r,
uint8_t  g,
uint8_t  b,
uint8_t  a = 255 
)
inlineexplicitconstexpr

Definition at line 26 of file RGBA.h.

◆ RGBA32() [4/5]

constexpr AMP::RGBA32::RGBA32 ( uint32_t  x)
inlineexplicitconstexpr

Definition at line 30 of file RGBA.h.

◆ RGBA32() [5/5]

constexpr AMP::RGBA32::RGBA32 ( ARGB32  x)
explicitconstexpr

Conversions.

Definition at line 87 of file RGBA.h.

Member Function Documentation

◆ alpha()

constexpr uint8_t AMP::RGBA32::alpha ( ) const
inlineconstexpr

Definition at line 35 of file RGBA.h.

References data.

◆ blue()

constexpr uint8_t AMP::RGBA32::blue ( ) const
inlineconstexpr

Definition at line 34 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

◆ green()

constexpr uint8_t AMP::RGBA32::green ( ) const
inlineconstexpr

Definition at line 33 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

◆ operator double()

constexpr AMP::RGBA32::operator double ( )
inlineconstexpr

Definition at line 40 of file RGBA.h.

References blue(), green(), and red().

◆ operator float()

constexpr AMP::RGBA32::operator float ( )
inlineconstexpr

Definition at line 39 of file RGBA.h.

◆ operator uint16_t()

constexpr AMP::RGBA32::operator uint16_t ( )
inlineconstexpr

Definition at line 38 of file RGBA.h.

References blue(), green(), and red().

◆ operator uint32_t()

constexpr AMP::RGBA32::operator uint32_t ( )
inlineconstexpr

Definition at line 36 of file RGBA.h.

References data.

◆ operator uint8_t()

constexpr AMP::RGBA32::operator uint8_t ( )
inlineconstexpr

Definition at line 37 of file RGBA.h.

References blue(), green(), and red().

◆ operator==()

constexpr bool AMP::RGBA32::operator== ( const RGBA32 rhs) const
inlineconstexpr

Definition at line 44 of file RGBA.h.

References data.

◆ red()

constexpr uint8_t AMP::RGBA32::red ( ) const
inlineconstexpr

Definition at line 32 of file RGBA.h.

References data.

Referenced by operator double(), operator uint16_t(), and operator uint8_t().

Member Data Documentation

◆ data

uint32_t AMP::RGBA32::data
private

Definition at line 47 of file RGBA.h.

Referenced by alpha(), blue(), green(), operator uint32_t(), operator==(), and red().


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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:42.
Comments on this page