CommonLibSSE (powerof3)
RE::NiColor Class Reference

#include <NiColor.h>

Public Types

enum  : std::size_t { kRed , kGreen , kBlue , kTotal }
 

Public Member Functions

constexpr NiColor () noexcept
 
constexpr NiColor (const NiColor &a_rhs) noexcept
 
constexpr NiColor (NiColor &&a_rhs) noexcept
 
constexpr NiColor (float a_red, float a_green, float a_blue) noexcept
 
constexpr NiColor (std::uint32_t a_hexValue) noexcept
 
 NiColor (const Color &a_rhs)
 
 ~NiColor () noexcept=default
 
constexpr NiColoroperator= (const NiColor &a_rhs) noexcept
 
constexpr NiColoroperator= (NiColor &&a_rhs) noexcept
 
constexpr NiColoroperator= (const NiColorA &a_rhs) noexcept
 
constexpr float & operator[] (std::size_t a_idx) noexcept
 
constexpr const float & operator[] (std::size_t a_idx) const noexcept
 
NiColor operator+ (const NiColor &a_rhs) const noexcept
 
NiColoroperator+= (const NiColor &a_rhs) noexcept
 
NiColor operator- (const NiColor &a_rhs) const noexcept
 
NiColoroperator-= (const NiColor &a_rhs) noexcept
 
NiColor operator- ()
 
NiColor operator* (const NiColor &a_rhs) const noexcept
 
NiColoroperator*= (const NiColor &a_rhs) noexcept
 
NiColor operator/ (const NiColor &a_rhs) const noexcept
 
NiColoroperator/= (const NiColor &a_rhs) noexcept
 
NiColor operator+ (float a_value) const noexcept
 
NiColoroperator+= (float a_value) noexcept
 
NiColor operator- (float a_value) const noexcept
 
NiColoroperator-= (float a_value) noexcept
 
NiColor operator* (float a_value) const noexcept
 
NiColoroperator*= (float a_value) noexcept
 
NiColor operator/ (float a_value) const noexcept
 
NiColoroperator/= (float a_value) noexcept
 
std::uint32_t ToInt () const
 
std::string ToHex () const
 

Public Attributes

float red
 
float green
 
float blue
 

Friends

constexpr friend bool operator== (const NiColor &a_lhs, const NiColor &a_rhs) noexcept
 
constexpr friend bool operator!= (const NiColor &a_lhs, const NiColor &a_rhs) noexcept
 
NiColor operator- (float a_lhs, const NiColor &a_rhs)
 
NiColor operator* (float a_lhs, const NiColor &a_rhs)
 
NiColor operator/ (float a_lhs, const NiColor &a_rhs)
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : std::size_t
Enumerator
kRed 
kGreen 
kBlue 
kTotal 

Constructor & Destructor Documentation

◆ NiColor() [1/6]

constexpr RE::NiColor::NiColor ( )
inlineconstexprnoexcept

◆ NiColor() [2/6]

constexpr RE::NiColor::NiColor ( const NiColor a_rhs)
inlineconstexprnoexcept

◆ NiColor() [3/6]

constexpr RE::NiColor::NiColor ( NiColor &&  a_rhs)
inlineconstexprnoexcept

◆ NiColor() [4/6]

constexpr RE::NiColor::NiColor ( float  a_red,
float  a_green,
float  a_blue 
)
inlineconstexprnoexcept

◆ NiColor() [5/6]

constexpr RE::NiColor::NiColor ( std::uint32_t  a_hexValue)
inlineconstexprnoexcept

◆ NiColor() [6/6]

RE::NiColor::NiColor ( const Color a_rhs)

◆ ~NiColor()

RE::NiColor::~NiColor ( )
defaultnoexcept

Member Function Documentation

◆ operator*() [1/2]

NiColor RE::NiColor::operator* ( const NiColor a_rhs) const
inlinenoexcept

◆ operator*() [2/2]

NiColor RE::NiColor::operator* ( float  a_value) const
inlinenoexcept

◆ operator*=() [1/2]

NiColor& RE::NiColor::operator*= ( const NiColor a_rhs)
inlinenoexcept

◆ operator*=() [2/2]

NiColor& RE::NiColor::operator*= ( float  a_value)
inlinenoexcept

◆ operator+() [1/2]

NiColor RE::NiColor::operator+ ( const NiColor a_rhs) const
inlinenoexcept

◆ operator+() [2/2]

NiColor RE::NiColor::operator+ ( float  a_value) const
inlinenoexcept

◆ operator+=() [1/2]

NiColor& RE::NiColor::operator+= ( const NiColor a_rhs)
inlinenoexcept

◆ operator+=() [2/2]

NiColor& RE::NiColor::operator+= ( float  a_value)
inlinenoexcept

◆ operator-() [1/3]

NiColor RE::NiColor::operator- ( )
inline

◆ operator-() [2/3]

NiColor RE::NiColor::operator- ( const NiColor a_rhs) const
inlinenoexcept

◆ operator-() [3/3]

NiColor RE::NiColor::operator- ( float  a_value) const
inlinenoexcept

◆ operator-=() [1/2]

NiColor& RE::NiColor::operator-= ( const NiColor a_rhs)
inlinenoexcept

◆ operator-=() [2/2]

NiColor& RE::NiColor::operator-= ( float  a_value)
inlinenoexcept

◆ operator/() [1/2]

NiColor RE::NiColor::operator/ ( const NiColor a_rhs) const
inlinenoexcept

◆ operator/() [2/2]

NiColor RE::NiColor::operator/ ( float  a_value) const
inlinenoexcept

◆ operator/=() [1/2]

NiColor& RE::NiColor::operator/= ( const NiColor a_rhs)
inlinenoexcept

◆ operator/=() [2/2]

NiColor& RE::NiColor::operator/= ( float  a_value)
inlinenoexcept

◆ operator=() [1/3]

constexpr NiColor& RE::NiColor::operator= ( const NiColor a_rhs)
inlineconstexprnoexcept

◆ operator=() [2/3]

constexpr NiColor & RE::NiColor::operator= ( const NiColorA a_rhs)
constexprnoexcept

◆ operator=() [3/3]

constexpr NiColor& RE::NiColor::operator= ( NiColor &&  a_rhs)
inlineconstexprnoexcept

◆ operator[]() [1/2]

constexpr const float& RE::NiColor::operator[] ( std::size_t  a_idx) const
inlineconstexprnoexcept

◆ operator[]() [2/2]

constexpr float& RE::NiColor::operator[] ( std::size_t  a_idx)
inlineconstexprnoexcept

◆ ToHex()

std::string RE::NiColor::ToHex ( ) const

◆ ToInt()

std::uint32_t RE::NiColor::ToInt ( ) const

Friends And Related Function Documentation

◆ operator!=

constexpr friend bool operator!= ( const NiColor a_lhs,
const NiColor a_rhs 
)
friend

◆ operator*

NiColor operator* ( float  a_lhs,
const NiColor a_rhs 
)
friend

◆ operator-

NiColor operator- ( float  a_lhs,
const NiColor a_rhs 
)
friend

◆ operator/

NiColor operator/ ( float  a_lhs,
const NiColor a_rhs 
)
friend

◆ operator==

constexpr friend bool operator== ( const NiColor a_lhs,
const NiColor a_rhs 
)
friend

Member Data Documentation

◆ blue

float RE::NiColor::blue

◆ green

float RE::NiColor::green

◆ red

float RE::NiColor::red

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