Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: Zap::Color Struct Reference

# Zap::Color Struct Reference

`#include <point.h>`

## Public Member Functions

| Color (const Color &c)
| Color (float red=1, float green=1, float blue=1)
void | read (const char **argv)
void | interp (float t, const Color &c1, const Color &c2)
void | set (float _r, float _g, float _b)
void | set (const Color &c)
Color | operator+ (const Color &c) const
Color | operator- (const Color &c) const
Color | operator- () const
Color & | operator+= (const Color &c)
Color & | operator-= (const Color &c)
Color | operator * (const float f)
Color & | operator *= (const float f)

## Data Fields

float | r
float | g
float | b

## Constructor & Destructor Documentation

Zap::Color::Color | ( | const Color & | c | ) | `[inline]`

Zap::Color::Color | ( | float | red = `1`,
|  | float | green = `1`,
|  | float | blue = `1` |
| ) |  |  | `[inline]`

## Member Function Documentation

void Zap::Color::read | ( | const char ** | argv | ) | `[inline]`

void Zap::Color::interp | ( | float | t,
|  | const Color & | c1,
|  | const Color & | c2 |
| ) |  |  | `[inline]`

void Zap::Color::set | ( | float | _r,
|  | float | _g,
|  | float | _b |
| ) |  |  | `[inline]`

void Zap::Color::set | ( | const Color & | c | ) | `[inline]`

Color Zap::Color::operator+ | ( | const Color & | c | ) | const`[inline]`

Color Zap::Color::operator- | ( | const Color & | c | ) | const`[inline]`

Color Zap::Color::operator- | ( |  | ) | const`[inline]`

Color& Zap::Color::operator+= | ( | const Color & | c | ) | `[inline]`

Color& Zap::Color::operator-= | ( | const Color & | c | ) | `[inline]`

Color Zap::Color::operator * | ( | const float | f | ) | `[inline]`

Color& Zap::Color::operator *= | ( | const float | f | ) | `[inline]`

## Field Documentation

float Zap::Color::r

float Zap::Color::g

float Zap::Color::b