DDraceNetwork Docs
ColorRGBA Class Reference

#include <color.h>

Inheritance diagram for ColorRGBA:
[legend]
Collaboration diagram for ColorRGBA:
[legend]

Public Member Functions

 ColorRGBA ()
 
 color4_base ()
 
 color4_base (const vec4 &v4)
 
 color4_base (const vec3 &v3)
 
 color4_base (float nx, float ny, float nz, float na)
 
 color4_base (float nx, float ny, float nz)
 
 color4_base (unsigned col, bool alpha=false)
 
- Public Member Functions inherited from color4_base< ColorRGBA >
 color4_base ()
 
 color4_base (const vec4 &v4)
 
 color4_base (const vec3 &v3)
 
 color4_base (float nx, float ny, float nz, float na)
 
 color4_base (float nx, float ny, float nz)
 
 color4_base (unsigned col, bool alpha=false)
 
vec4 v4 () const
 
 operator vec4 () const
 
float & operator[] (int index)
 
bool operator== (const color4_base &col) const
 
bool operator!= (const color4_base &col) const
 
unsigned Pack (bool Alpha=true) const
 
unsigned PackAlphaLast (bool Alpha=true) const
 
ColorRGBA WithAlpha (float alpha) const
 
ColorRGBA WithMultipliedAlpha (float alpha) const
 
ColorRGBA Multiply (const ColorRGBA &Other) const
 

Additional Inherited Members

- Static Public Member Functions inherited from color4_base< ColorRGBA >
static UnpackT UnpackAlphaLast (unsigned Color, bool Alpha=true)
 
- Public Attributes inherited from color4_base< ColorRGBA >
float x
 
float r
 
float h
 
union {
   float   x
 
   float   r
 
   float   h
 
}; 
 
float y
 
float g
 
float s
 
union {
   float   y
 
   float   g
 
   float   s
 
}; 
 
float z
 
float b
 
float l
 
float v
 
union {
   float   z
 
   float   b
 
   float   l
 
   float   v
 
}; 
 
float w
 
float a
 
union {
   float   w
 
   float   a
 
}; 
 

Constructor & Destructor Documentation

◆ ColorRGBA()

ColorRGBA::ColorRGBA ( )
inline

Member Function Documentation

◆ color4_base() [1/6]

color4_base< DerivedT >::color4_base ( )
inline

◆ color4_base() [2/6]

color4_base< DerivedT >::color4_base ( const vec3 v3)
inline

◆ color4_base() [3/6]

color4_base< DerivedT >::color4_base ( const vec4 v4)
inline

◆ color4_base() [4/6]

color4_base< DerivedT >::color4_base ( float  nx,
float  ny,
float  nz 
)
inline

◆ color4_base() [5/6]

color4_base< DerivedT >::color4_base ( float  nx,
float  ny,
float  nz,
float  na 
)
inline

◆ color4_base() [6/6]

color4_base< DerivedT >::color4_base ( unsigned  col,
bool  alpha = false 
)
inline

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