Neo  0.5.0
Developer Documentation
Neo::Color Class Reference

#include <Color.h>

Public Member Functions

 Color (void)
 
 Color (unsigned char newR, unsigned char newG, unsigned char newB, unsigned char newA)
 
 Color (const Color &color)
 
 Color (const Vector3 &color)
 
 Color (const Vector4 &color)
 
 ~Color ()
 
Color operator+ (const Color &color) const
 
Color operator- (const Color &color) const
 
Color operator+ (const int value) const
 
Color operator- (const int value) const
 
Color operator* (const float value) const
 
Color operator/ (const float value) const
 
bool operator== (const Color &color) const
 
bool operator!= (const Color &color) const
 
 operator unsigned char * () const
 
 operator const unsigned char * () const
 
void set (unsigned char newR, unsigned char newG, unsigned char newB, unsigned char newA)
 

Public Attributes

unsigned char r
 
unsigned char g
 
unsigned char b
 
unsigned char a
 

Constructor & Destructor Documentation

Neo::Color::Color ( void  )
inline
Neo::Color::Color ( unsigned char  newR,
unsigned char  newG,
unsigned char  newB,
unsigned char  newA 
)
inline
Neo::Color::Color ( const Color color)
inline
Neo::Color::Color ( const Vector3 color)
inline
Neo::Color::Color ( const Vector4 color)
inline
Neo::Color::~Color ( )
inline

Member Function Documentation

Neo::Color::operator const unsigned char * ( ) const
inline
Neo::Color::operator unsigned char * ( ) const
inline
bool Neo::Color::operator!= ( const Color color) const
inline
Color Neo::Color::operator* ( const float  value) const
inline
Color Neo::Color::operator+ ( const Color color) const
inline
Color Neo::Color::operator+ ( const int  value) const
inline
Color Neo::Color::operator- ( const Color color) const
inline
Color Neo::Color::operator- ( const int  value) const
inline
Color Neo::Color::operator/ ( const float  value) const
inline
bool Neo::Color::operator== ( const Color color) const
inline
void Neo::Color::set ( unsigned char  newR,
unsigned char  newG,
unsigned char  newB,
unsigned char  newA 
)
inline

Member Data Documentation

unsigned char Neo::Color::a
unsigned char Neo::Color::b
unsigned char Neo::Color::g
unsigned char Neo::Color::r

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