Assimp  v2.0 (November 2010)
Public Member Functions | Public Attributes | List of all members
aiColor4D Struct Reference

Represents a color in Red-Green-Blue space including an alpha component. More...

Public Member Functions

 aiColor4D ()
 
 aiColor4D (float _r, float _g, float _b, float _a)
 
 aiColor4D (float _r)
 
 aiColor4D (const aiColor4D &o)
 
bool IsBlack () const
 check whether a color is (close to) black More...
 
bool operator!= (const aiColor4D &other) const
 
const aiColor4Doperator*= (float f)
 
const aiColor4Doperator+= (const aiColor4D &o)
 
const aiColor4Doperator-= (const aiColor4D &o)
 
const aiColor4Doperator/= (float f)
 
bool operator== (const aiColor4D &other) const
 
float operator[] (unsigned int i) const
 
float & operator[] (unsigned int i)
 

Public Attributes

float a
 
float b
 
float g
 
float r
 

Detailed Description

Represents a color in Red-Green-Blue space including an alpha component.

Color values range from 0 to 1.

Constructor & Destructor Documentation

aiColor4D::aiColor4D ( )
inline
aiColor4D::aiColor4D ( float  _r,
float  _g,
float  _b,
float  _a 
)
inline
aiColor4D::aiColor4D ( float  _r)
inline
aiColor4D::aiColor4D ( const aiColor4D o)
inline

Member Function Documentation

bool aiColor4D::IsBlack ( ) const
inline

check whether a color is (close to) black

AI_FORCE_INLINE bool aiColor4D::operator!= ( const aiColor4D other) const
AI_FORCE_INLINE const aiColor4D & aiColor4D::operator*= ( float  f)
AI_FORCE_INLINE const aiColor4D & aiColor4D::operator+= ( const aiColor4D o)
AI_FORCE_INLINE const aiColor4D & aiColor4D::operator-= ( const aiColor4D o)
AI_FORCE_INLINE const aiColor4D & aiColor4D::operator/= ( float  f)
AI_FORCE_INLINE bool aiColor4D::operator== ( const aiColor4D other) const
AI_FORCE_INLINE float aiColor4D::operator[] ( unsigned int  i) const
inline
AI_FORCE_INLINE float & aiColor4D::operator[] ( unsigned int  i)
inline

Member Data Documentation

float aiColor4D::a
float aiColor4D::b
float aiColor4D::g
float aiColor4D::r

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