Support Forum       G3D Web Page     
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
G3D::Color1 Class Reference


Monochrome color. More...

Public Member Functions

 Color1 (DoNotInitialize dni)
 
 Color1 ()
 
Initializes to 0 More...
 
 Color1 (class BinaryInput &bi)
 
 Color1 (float v)
 
 Color1 (unorm8 v)
 
 Color1 (const class Color1unorm8 &other)
 
void deserialize (class BinaryInput &bi)
 
size_t hashCode () const
 
bool isOne () const
 
bool isZero () const
 
Color1 lerp (const Color1 &other, float a) const
 
Color1 max (const Color1 &other) const
 
Color1 min (const Color1 &other) const
 
Color1 operator* (const Color1 &other) const
 
Color1 operator* (const float other) const
 
Color1operator*= (const Color1 other)
 
Color1operator*= (const float other)
 
Color1 operator+ (const Color1 &other) const
 
Color1 operator+ (const float other) const
 
Color1operator+= (const Color1 other)
 
Color1 operator- (const Color1 &other) const
 
Color1 operator- (const float other) const
 
Color1 operator- () const
 
Color1operator-= (const Color1 other)
 
Color1 operator/ (const Color1 &other) const
 
Color1 operator/ (const float other) const
 
Color1operator/= (const float other)
 
Color1operator/= (const Color1 other)
 
class Color3 rgb () const
 Returns the value three times. More...
 
void serialize (class BinaryOutput &bo) const
 

Static Public Member Functions

static const Color1nan ()
 
static const Color1one ()
 
static const Color1zero ()
 

Public Attributes

float value
 

Detailed Description


Monochrome color.

Constructor & Destructor Documentation

◆ Color1() [1/6]

G3D::Color1::Color1 ( DoNotInitialize  dni)
inline

◆ Color1() [2/6]

G3D::Color1::Color1 ( )
inline


Initializes to 0

Referenced by lerp(), max(), min(), operator*(), operator+(), operator-(), and operator/().

◆ Color1() [3/6]

G3D::Color1::Color1 ( class BinaryInput bi)

◆ Color1() [4/6]

G3D::Color1::Color1 ( float  v)
inlineexplicit

◆ Color1() [5/6]

G3D::Color1::Color1 ( unorm8  v)
inlineexplicit

◆ Color1() [6/6]

G3D::Color1::Color1 ( const class Color1unorm8 other)
explicit

Member Function Documentation

◆ deserialize()

void G3D::Color1::deserialize ( class BinaryInput bi)

◆ hashCode()

size_t G3D::Color1::hashCode ( ) const
inline

◆ isOne()

bool G3D::Color1::isOne ( ) const
inline

◆ isZero()

bool G3D::Color1::isZero ( ) const
inline

◆ lerp()

Color1 G3D::Color1::lerp ( const Color1 other,
float  a 
) const
inline

Referenced by G3D::lerp().

◆ max()

Color1 G3D::Color1::max ( const Color1 other) const
inline

◆ min()

Color1 G3D::Color1::min ( const Color1 other) const
inline

◆ nan()

static const Color1& G3D::Color1::nan ( )
static

◆ one()

static const Color1& G3D::Color1::one ( )
static

◆ operator*() [1/2]

Color1 G3D::Color1::operator* ( const Color1 other) const
inline

◆ operator*() [2/2]

Color1 G3D::Color1::operator* ( const float  other) const
inline

◆ operator*=() [1/2]

Color1& G3D::Color1::operator*= ( const Color1  other)
inline

◆ operator*=() [2/2]

Color1& G3D::Color1::operator*= ( const float  other)
inline

◆ operator+() [1/2]

Color1 G3D::Color1::operator+ ( const Color1 other) const
inline

◆ operator+() [2/2]

Color1 G3D::Color1::operator+ ( const float  other) const
inline

◆ operator+=()

Color1& G3D::Color1::operator+= ( const Color1  other)
inline

◆ operator-() [1/3]

Color1 G3D::Color1::operator- ( const Color1 other) const
inline

◆ operator-() [2/3]

Color1 G3D::Color1::operator- ( const float  other) const
inline

◆ operator-() [3/3]

Color1 G3D::Color1::operator- ( ) const
inline

◆ operator-=()

Color1& G3D::Color1::operator-= ( const Color1  other)
inline

◆ operator/() [1/2]

Color1 G3D::Color1::operator/ ( const Color1 other) const
inline

◆ operator/() [2/2]

Color1 G3D::Color1::operator/ ( const float  other) const
inline

◆ operator/=() [1/2]

Color1& G3D::Color1::operator/= ( const float  other)
inline

◆ operator/=() [2/2]

Color1& G3D::Color1::operator/= ( const Color1  other)
inline

◆ rgb()

class Color3 G3D::Color1::rgb ( ) const

Returns the value three times.

◆ serialize()

void G3D::Color1::serialize ( class BinaryOutput bo) const

◆ zero()

static const Color1& G3D::Color1::zero ( )
static

Member Data Documentation

◆ value

float G3D::Color1::value

documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15