Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Burger::RGBAFloat_t Struct Reference

Red, Green,Blue and Alpha 32 bit floating point values. More...

Collaboration diagram for Burger::RGBAFloat_t:
Collaboration graph
[legend]

Public Member Functions

 operator Vector4D_t & ()
 Convert the color to a Vector4D_t.
 
 operator const Vector4D_t & () const
 Convert the color to a const Vector4D_t.
 
RGBAFloat_toperator= (const Vector4D_t &rInput)
 Convert a Vector4D_t into a RGBFloat_t.
 

Public Attributes

float m_fRed
 32 bit float red value
 
float m_fGreen
 32 bit float green value
 
float m_fBlue
 32 bit float blue value
 
float m_fAlpha
 32 bit float alpha value
 

Static Public Attributes

static const RGBAFloat_t Aqua = {0,1.0f,1.0f,1.0f}
 
static const RGBAFloat_t Black = {0,0,0,1.0f}
 
static const RGBAFloat_t Blue = {0,0,1.0f,1.0f}
 
static const RGBAFloat_t Fuchsia = {1.0f,0,1.0f,1.0f}
 
static const RGBAFloat_t Gray = {0.5f,0.5f,0.5f,1.0f}
 
static const RGBAFloat_t Green = {0,0.5f,0,1.0f}
 
static const RGBAFloat_t Lime = {0,1.0f,0,1.0f}
 
static const RGBAFloat_t Maroon = {0.5f,0,0,1.0f}
 
static const RGBAFloat_t Navy = {0,0,0.5f,1.0f}
 
static const RGBAFloat_t Olive = {0.5f,0.5f,0,1.0f}
 
static const RGBAFloat_t Orange = {1.0f,165.0f/255.0f,0,1.0f}
 
static const RGBAFloat_t Purple = {0.5f,0,0.5f,1.0f}
 
static const RGBAFloat_t Red = {1.0f,0,0,1.0f}
 
static const RGBAFloat_t Silver = {0.75f,0.75f,0.75f,1.0f}
 
static const RGBAFloat_t Teal = {0,0.5f,0.5f,1.0f}
 
static const RGBAFloat_t White = {1.0f,1.0f,1.0f,1.0f}
 
static const RGBAFloat_t Yellow = {1.0f,1.0f,0,1.0f}
 

Detailed Description

Red, Green,Blue and Alpha 32 bit floating point values.


Structure that contains the red, green, blue and alpha (in that order) color components where the value of 0.0f mean absence of color and 1.0f is the maximum color

See also
Burger::RGBFloat_t, Burger::RGBAWord8_t or Burger::RGBAWord16_t

Member Function Documentation

◆ operator const Vector4D_t &()

Burger::RGBAFloat_t::operator const Vector4D_t & ( ) const
inline

Convert the color to a const Vector4D_t.


Since the RGBAFloat_t structure is identical to a Vector4D_t, this operator will allow the color to be used with the math operators that use a Vector4D_t as input.

Returns
A reference to this object cast as a const Vector4D_t
See also
RGBAFloat_t::operator Vector4D_t &() or RGBAFloat_t::operator = (const Vector4D_t &)

◆ operator Vector4D_t &()

Burger::RGBAFloat_t::operator Vector4D_t & ( )
inline

Convert the color to a Vector4D_t.


Since the RGBAFloat_t structure is identical to a Vector4D_t, this operator will allow the color to be used with the math operators that use a Vector4D_t as input or output.

Returns
A reference to this object cast as a Vector4D_t
See also
RGBAFloat_t::operator const Vector4D_t &() const or RGBAFloat_t::operator = (const Vector4D_t &)

◆ operator=()

Burger::RGBAFloat_t::operator= ( const Vector4D_t & rInput)
inline

Convert a Vector4D_t into a RGBFloat_t.


Since the RGBAFloat_t structure is identical to a Vector4D_t, this operator will copy a Vector4D_t into this color structure

Parameters
rInputReference to a Vector4D_t to copy into this structure
Returns
A reference to this object
See also
RGBAFloat_t::operator Vector4D_t &() or RGBAFloat_t::operator const Vector4D_t &() const

Member Data Documentation

◆ Aqua

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Aqua = {0,1.0f,1.0f,1.0f}
static

RGBA 0,1.0f,1.0f,1.0f : 

◆ Black

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Black = {0,0,0,1.0f}
static

RGBA 0,0,0,1.0f : 

◆ Blue

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Blue = {0,0,1.0f,1.0f}
static

RGBA 0,0,1.0f,1.0f : 

◆ Fuchsia

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Fuchsia = {1.0f,0,1.0f,1.0f}
static

RGBA 1.0f,0,1.0f,1.0f : 

◆ Gray

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Gray = {0.5f,0.5f,0.5f,1.0f}
static

RGBA 0.5f,0.5f,0.5f,1.0f : 

◆ Green

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Green = {0,0.5f,0,1.0f}
static

RGBA 0,0.5f,0,1.0f : 

◆ Lime

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Lime = {0,1.0f,0,1.0f}
static

RGBA 0,1.0f,0,1.0f : 

◆ m_fAlpha

float Burger::RGBAFloat_t::m_fAlpha

32 bit float alpha value

◆ m_fBlue

float Burger::RGBAFloat_t::m_fBlue

32 bit float blue value

◆ m_fGreen

float Burger::RGBAFloat_t::m_fGreen

32 bit float green value

◆ m_fRed

float Burger::RGBAFloat_t::m_fRed

32 bit float red value

◆ Maroon

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Maroon = {0.5f,0,0,1.0f}
static

RGBA 0.5f,0,0,1.0f : 

◆ Navy

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Navy = {0,0,0.5f,1.0f}
static

RGBA 0,0,0.5f,1.0f : 

◆ Olive

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Olive = {0.5f,0.5f,0,1.0f}
static

RGBA 0.5f,0.5f,0,1.0f : 

◆ Orange

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Orange = {1.0f,165.0f/255.0f,0,1.0f}
static

RGBA 1.0f,165.0f/255.0f,0,1.0f : 

◆ Purple

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Purple = {0.5f,0,0.5f,1.0f}
static

RGBA 0.5f,0,0.5f,1.0f : 

◆ Red

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Red = {1.0f,0,0,1.0f}
static

RGBA 1.0f,0,0,1.0f : 

◆ Silver

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Silver = {0.75f,0.75f,0.75f,1.0f}
static

RGBA 0.75f,0.75f,0.75f,1.0f : 

◆ Teal

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Teal = {0,0.5f,0.5f,1.0f}
static

RGBA 0,0.5f,0.5f,1.0f : 

◆ White

const Burger::RGBAFloat_t Burger::RGBAFloat_t::White = {1.0f,1.0f,1.0f,1.0f}
static

RGBA 1.0f,1.0f,1.0f,1.0f : 

◆ Yellow

const Burger::RGBAFloat_t Burger::RGBAFloat_t::Yellow = {1.0f,1.0f,0,1.0f}
static

RGBA 1.0f,1.0f,0,1.0f :