EHS
ehs::Color4 Class Reference

#include <Color4.h>

Public Member Functions

 Color4 ()
 
 Color4 (float scalar)
 
 Color4 (const Color3 &color)
 
 Color4 (float r, float g, float b, float a=1.0f)
 
 Color4 (const Color4 &color)
 
Color4operator= (float scalar)
 
Color4operator= (const Color3 &color)
 
Color4operator= (const Color4 &color)
 
bool operator== (const Color4 &color) const
 
bool operator!= (const Color4 &color) const
 
float operator[] (UInt_64 i) const
 
float & operator[] (UInt_64 i)
 
Color4operator*= (const Color4 &color)
 
Color4 operator* (const Color4 &color) const
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Constructor & Destructor Documentation

◆ Color4() [1/5]

ehs::Color4::Color4 ( )

◆ Color4() [2/5]

ehs::Color4::Color4 ( float  scalar)

◆ Color4() [3/5]

ehs::Color4::Color4 ( const Color3 color)
explicit

◆ Color4() [4/5]

ehs::Color4::Color4 ( float  r,
float  g,
float  b,
float  a = 1.0f 
)

◆ Color4() [5/5]

ehs::Color4::Color4 ( const Color4 color)

Member Function Documentation

◆ operator!=()

bool ehs::Color4::operator!= ( const Color4 color) const

◆ operator*()

Color4 ehs::Color4::operator* ( const Color4 color) const

◆ operator*=()

Color4 & ehs::Color4::operator*= ( const Color4 color)

◆ operator=() [1/3]

Color4 & ehs::Color4::operator= ( const Color3 color)

◆ operator=() [2/3]

Color4 & ehs::Color4::operator= ( const Color4 color)

◆ operator=() [3/3]

Color4 & ehs::Color4::operator= ( float  scalar)

◆ operator==()

bool ehs::Color4::operator== ( const Color4 color) const

◆ operator[]() [1/2]

float & ehs::Color4::operator[] ( UInt_64  i)

◆ operator[]() [2/2]

float ehs::Color4::operator[] ( UInt_64  i) const

Member Data Documentation

◆ a

float ehs::Color4::a

◆ b

float ehs::Color4::b

◆ g

float ehs::Color4::g

◆ r

float ehs::Color4::r

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