Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ColorValue Class Reference

#include <Color.h>

List of all members.

Public Member Functions

 ColorValue ()
 ColorValue (const ColorValue &c)
 ColorValue (const Color &c)
 ColorValue (float ar, float ag, float ab, float aa=1.0f)
int operator== (const ColorValue &c) const
int operator!= (const ColorValue &c) const
ColorValueoperator+= (const ColorValue &c)
ColorValue operator+ (const ColorValue &c) const
ColorValue operator* (const ColorValue &c) const
ColorValue operator* (double scale) const
ColorValue dim (double scale) const
void Set (float ar, float ag, float ab, float aa=1.0f)
void SetRed (float ar)
void SetGreen (float ag)
void SetBlue (float ab)
void SetAlpha (float aa)
float Red () const
float Green () const
float Blue () const
float Alpha () const
Color ToColor () const
DWORD TextureFormat (int keep_alpha=0) const
DWORD Formatted () const
DWORD Unfaded () const
Color ShadeColor (int shade) const
DWORD Shaded (int shade) const
Color Faded () const

Static Public Member Functions

static const char * TYPENAME ()

Friends

class Color

Detailed Description

Definition at line 188 of file Color.h.


Constructor & Destructor Documentation

ColorValue::ColorValue ( )
inline

Definition at line 195 of file Color.h.

ColorValue::ColorValue ( const ColorValue c)
inline

Definition at line 196 of file Color.h.

ColorValue::ColorValue ( const Color c)
inline

Definition at line 197 of file Color.h.

ColorValue::ColorValue ( float  ar,
float  ag,
float  ab,
float  aa = 1.0f 
)
inline

Definition at line 201 of file Color.h.


Member Function Documentation

float ColorValue::Alpha ( ) const
inline

Definition at line 225 of file Color.h.

float ColorValue::Blue ( ) const
inline

Definition at line 224 of file Color.h.

ColorValue ColorValue::dim ( double  scale) const

Definition at line 665 of file Color.cpp.

Color ColorValue::Faded ( ) const
inline

Definition at line 233 of file Color.h.

DWORD ColorValue::Formatted ( ) const
inline

Definition at line 229 of file Color.h.

float ColorValue::Green ( ) const
inline

Definition at line 223 of file Color.h.

int ColorValue::operator!= ( const ColorValue c) const
inline

Definition at line 207 of file Color.h.

ColorValue ColorValue::operator* ( const ColorValue c) const

Definition at line 650 of file Color.cpp.

ColorValue ColorValue::operator* ( double  scale) const

Definition at line 656 of file Color.cpp.

ColorValue ColorValue::operator+ ( const ColorValue c) const

Definition at line 637 of file Color.cpp.

ColorValue & ColorValue::operator+= ( const ColorValue c)

Definition at line 627 of file Color.cpp.

int ColorValue::operator== ( const ColorValue c) const
inline

Definition at line 206 of file Color.h.

float ColorValue::Red ( ) const
inline

Definition at line 222 of file Color.h.

void ColorValue::Set ( float  ar,
float  ag,
float  ab,
float  aa = 1.0f 
)
inline

Definition at line 215 of file Color.h.

void ColorValue::SetAlpha ( float  aa)
inline

Definition at line 220 of file Color.h.

void ColorValue::SetBlue ( float  ab)
inline

Definition at line 219 of file Color.h.

void ColorValue::SetGreen ( float  ag)
inline

Definition at line 218 of file Color.h.

void ColorValue::SetRed ( float  ar)
inline

Definition at line 217 of file Color.h.

Color ColorValue::ShadeColor ( int  shade) const
inline

Definition at line 231 of file Color.h.

DWORD ColorValue::Shaded ( int  shade) const
inline

Definition at line 232 of file Color.h.

DWORD ColorValue::TextureFormat ( int  keep_alpha = 0) const
inline

Definition at line 228 of file Color.h.

Color ColorValue::ToColor ( ) const

Definition at line 677 of file Color.cpp.

static const char* ColorValue::TYPENAME ( )
inlinestatic

Definition at line 193 of file Color.h.

DWORD ColorValue::Unfaded ( ) const
inline

Definition at line 230 of file Color.h.


Friends And Related Function Documentation

friend class Color
friend

Definition at line 190 of file Color.h.


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