Maratis Engine
Public Member Functions | Public Attributes

MColor Class Reference

#include <MColor.h>

List of all members.

Public Member Functions

 MColor (void)
 MColor (unsigned char newR, unsigned char newG, unsigned char newB, unsigned char newA)
 MColor (const MColor &color)
 MColor (const MVector3 &color)
 MColor (const MVector4 &color)
 ~MColor ()
MColor operator+ (const MColor &color) const
MColor operator- (const MColor &color) const
MColor operator+ (const int value) const
MColor operator- (const int value) const
MColor operator* (const float value) const
MColor operator/ (const float value) const
bool operator== (const MColor &color) const
bool operator!= (const MColor &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

MColor::MColor ( void  ) [inline]
MColor::MColor ( unsigned char  newR,
unsigned char  newG,
unsigned char  newB,
unsigned char  newA 
) [inline]
MColor::MColor ( const MColor color) [inline]
MColor::MColor ( const MVector3 color) [inline]
MColor::MColor ( const MVector4 color) [inline]
MColor::~MColor ( ) [inline]

Member Function Documentation

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

Member Data Documentation

unsigned char MColor::a
unsigned char MColor::b
unsigned char MColor::g
unsigned char MColor::r

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines