CrystalSpace

Public API Reference

csutil/cscolor.h File Reference

Floating-point color. More...

#include "csextern.h"

Go to the source code of this file.

Classes

class  csColor
 A class used to represent a color in RGB space. More...
class  csColor4
 A class used to represent a color in RGBA space. More...

Functions

csColor operator* (const csColor &v1, const csColor &v2)
 Multiply two colors.
csColor operator* (float f, const csColor &s)
 Multiply a scalar value by a color.
csColor4 operator* (const csColor4 &v1, const csColor4 &v2)
 Multiply two colors.
csColor4 operator* (const csColor4 &s, float f)
 Multiply a color by a scalar value.
csColor4 operator* (float f, const csColor4 &s)
 Multiply a scalar value by a color.
csColor operator* (const csColor &s, float f)
 Multiply a color by a scalar value.
csColor4 operator+ (const csColor4 &s1, const csColor4 &s2)
 Add two colors.
csColor operator+ (const csColor &s1, const csColor &s2)
 Add two colors.
csColor4 operator- (const csColor4 &s1, const csColor4 &s2)
 Subtract two colors.
csColor operator- (const csColor &s1, const csColor &s2)
 Subtract two colors.
csColor operator/ (const csColor &v, float f)
 Divide a color by a scalar.
csColor4 operator/ (const csColor4 &v, float f)
 Divide a color by a scalar.

Detailed Description

Floating-point color.

Definition in file cscolor.h.


Function Documentation

csColor operator* ( const csColor v1,
const csColor v2 
) [inline]

Multiply two colors.

Definition at line 129 of file cscolor.h.

csColor operator* ( float  f,
const csColor s 
) [inline]

Multiply a scalar value by a color.

Definition at line 142 of file cscolor.h.

csColor4 operator* ( const csColor4 v1,
const csColor4 v2 
) [inline]

Multiply two colors.

Definition at line 257 of file cscolor.h.

csColor4 operator* ( const csColor4 s,
float  f 
) [inline]

Multiply a color by a scalar value.

Definition at line 267 of file cscolor.h.

csColor4 operator* ( float  f,
const csColor4 s 
) [inline]

Multiply a scalar value by a color.

Definition at line 271 of file cscolor.h.

csColor operator* ( const csColor s,
float  f 
) [inline]

Multiply a color by a scalar value.

Definition at line 138 of file cscolor.h.

csColor4 operator+ ( const csColor4 s1,
const csColor4 s2 
) [inline]

Add two colors.

Definition at line 275 of file cscolor.h.

csColor operator+ ( const csColor s1,
const csColor s2 
) [inline]

Add two colors.

Definition at line 146 of file cscolor.h.

csColor4 operator- ( const csColor4 s1,
const csColor4 s2 
) [inline]

Subtract two colors.

Definition at line 278 of file cscolor.h.

csColor operator- ( const csColor s1,
const csColor s2 
) [inline]

Subtract two colors.

Definition at line 149 of file cscolor.h.

csColor operator/ ( const csColor v,
float  f 
) [inline]

Divide a color by a scalar.

Definition at line 126 of file cscolor.h.

csColor4 operator/ ( const csColor4 v,
float  f 
) [inline]

Divide a color by a scalar.

Definition at line 254 of file cscolor.h.


Generated for Crystal Space 1.4.1 by doxygen 1.7.1