Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::Color1 Class Reference

Monochrome color. More...

#include <Color1.h>

List of all members.

Public Member Functions

 Color1 (const class Color1uint8 &other)
 Color1 (float v)
 Color1 (class BinaryInput &bi)
 Color1 ()
void deserialize (class BinaryInput &bi)
Color1 lerp (const Color1 &other, float a) const
Color1 max (const Color1 &other) const
Color1 min (const Color1 &other) const
Color1 operator * (const float other) const
Color1 operator * (const Color1 &other) const
Color1 operator+ (const float other) const
Color1 operator+ (const Color1 &other) const
Color1operator+= (const Color1 other)
Color1 operator- () const
Color1 operator- (const float other) const
Color1 operator- (const Color1 &other) const
Color1operator-= (const Color1 other)
Color1 operator/ (const float other) const
Color1 operator/ (const Color1 &other) const
void serialize (class BinaryOutput &bo) const

Public Attributes

float value


Detailed Description

Monochrome color.

This is just a float, but it has nice semantics because a scaling by 255 automatically occurs when switching between fixed point (Color1uint8) and floating point (Color1) formats.


Constructor & Destructor Documentation

G3D::Color1::Color1 (  )  [inline]

Does not initialize fields.

G3D::Color1::Color1 ( class BinaryInput bi  ) 

G3D::Color1::Color1 ( float  v  )  [inline, explicit]

G3D::Color1::Color1 ( const class Color1uint8 other  ) 


Member Function Documentation

void G3D::Color1::deserialize ( class BinaryInput bi  ) 

Color1 G3D::Color1::lerp ( const Color1 other,
float  a 
) const [inline]

Color1 G3D::Color1::max ( const Color1 other  )  const [inline]

Color1 G3D::Color1::min ( const Color1 other  )  const [inline]

Color1 G3D::Color1::operator * ( const float  other  )  const [inline]

Color1 G3D::Color1::operator * ( const Color1 other  )  const [inline]

Color1 G3D::Color1::operator+ ( const float  other  )  const [inline]

Color1 G3D::Color1::operator+ ( const Color1 other  )  const [inline]

Color1& G3D::Color1::operator+= ( const Color1  other  )  [inline]

Color1 G3D::Color1::operator- (  )  const [inline]

Color1 G3D::Color1::operator- ( const float  other  )  const [inline]

Color1 G3D::Color1::operator- ( const Color1 other  )  const [inline]

Color1& G3D::Color1::operator-= ( const Color1  other  )  [inline]

Color1 G3D::Color1::operator/ ( const float  other  )  const [inline]

Color1 G3D::Color1::operator/ ( const Color1 other  )  const [inline]

void G3D::Color1::serialize ( class BinaryOutput bo  )  const


Member Data Documentation


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo