raSystem  1.0 bata
raColor Class Reference

#include <raColor.h>

Public Member Functions

 raColor (void)
 
 raColor (float _r, float _g, float _b, float _a)
 
 raColor (float _r, float _g, float _b)
 
 raColor (float f)
 
 raColor (float *com)
 
 raColor (const int _r, const int _g, const int _b)
 
 raColor (const int _r, const int _g, const int _b, const int _a)
 
 raColor (const int *pComponent)
 
 raColor (const int c)
 
 operator unsigned long () const
 
 operator float * ()
 
raColoroperator= (const raColor &c)
 
raColoroperator+= (const raColor &c)
 
raColoroperator-= (const raColor &c)
 
raColoroperator*= (const raColor &c)
 
raColoroperator*= (const float f)
 
raColoroperator/= (const raColor &c)
 
raColoroperator/= (const float f)
 

Public Attributes

union {
   struct {
      float   r
 
      float   g
 
      float   b
 
      float   a
 
   } 
 
   struct {
      float   red
 
      float   green
 
      float   blue
 
      float   alpa
 
   } 
 
   float   c [4]
 
}; 
 

Detailed Description

Definition at line 5 of file raColor.h.

Constructor & Destructor Documentation

◆ raColor() [1/9]

raColor::raColor ( void  )
inline

Definition at line 27 of file raColor.h.

◆ raColor() [2/9]

raColor::raColor ( float  _r,
float  _g,
float  _b,
float  _a 
)
inline

Definition at line 28 of file raColor.h.

◆ raColor() [3/9]

raColor::raColor ( float  _r,
float  _g,
float  _b 
)
inline

Definition at line 29 of file raColor.h.

◆ raColor() [4/9]

raColor::raColor ( float  f)
inline

Definition at line 30 of file raColor.h.

◆ raColor() [5/9]

raColor::raColor ( float *  com)
inline

Definition at line 31 of file raColor.h.

◆ raColor() [6/9]

raColor::raColor ( const int  _r,
const int  _g,
const int  _b 
)
inline

Definition at line 32 of file raColor.h.

◆ raColor() [7/9]

raColor::raColor ( const int  _r,
const int  _g,
const int  _b,
const int  _a 
)
inline

Definition at line 33 of file raColor.h.

◆ raColor() [8/9]

raColor::raColor ( const int *  pComponent)
inline

Definition at line 34 of file raColor.h.

◆ raColor() [9/9]

raColor::raColor ( const int  c)
inline

Definition at line 35 of file raColor.h.

Member Function Documentation

◆ operator float *()

raColor::operator float * ( )
inline

Definition at line 44 of file raColor.h.

◆ operator unsigned long()

raColor::operator unsigned long ( ) const
inline

Definition at line 37 of file raColor.h.

◆ operator*=() [1/2]

raColor& raColor::operator*= ( const raColor c)
inline

Definition at line 50 of file raColor.h.

◆ operator*=() [2/2]

raColor& raColor::operator*= ( const float  f)
inline

Definition at line 51 of file raColor.h.

◆ operator+=()

raColor& raColor::operator+= ( const raColor c)
inline

Definition at line 48 of file raColor.h.

◆ operator-=()

raColor& raColor::operator-= ( const raColor c)
inline

Definition at line 49 of file raColor.h.

◆ operator/=() [1/2]

raColor& raColor::operator/= ( const raColor c)
inline

Definition at line 52 of file raColor.h.

◆ operator/=() [2/2]

raColor& raColor::operator/= ( const float  f)
inline

Definition at line 53 of file raColor.h.

◆ operator=()

raColor& raColor::operator= ( const raColor c)
inline

Definition at line 47 of file raColor.h.

Member Data Documentation

◆ @9

union { ... }

◆ a

float raColor::a

Definition at line 15 of file raColor.h.

◆ alpa

float raColor::alpa

Definition at line 22 of file raColor.h.

◆ b

float raColor::b

Definition at line 14 of file raColor.h.

◆ blue

float raColor::blue

Definition at line 21 of file raColor.h.

◆ c

float raColor::c[4]

Definition at line 24 of file raColor.h.

◆ g

float raColor::g

Definition at line 13 of file raColor.h.

◆ green

float raColor::green

Definition at line 20 of file raColor.h.

◆ r

float raColor::r

Definition at line 12 of file raColor.h.

◆ red

float raColor::red

Definition at line 19 of file raColor.h.


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