Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Lamp::Color3c Class Reference

三要素キャラクタカラー More...

#include <Color3c.h>

List of all members.

Public Member Functions

 Color3c ()
 コンストラクタ

 Color3c (u_char sourceR, u_char sourceG, u_char sourceB)
 コンストラクタ

 Color3c (const Color4c &source)
 コンストラクタ

 Color3c (const Color3f &source)
 コンストラクタ

 Color3c (const Color4f &source)
 コンストラクタ

void set (u_char sourceR, u_char sourceG, u_char sourceB)
 値の設定

void set (const Color4c &source)
 四要素キャラクタカラーの設定

void set (const Color3f &source)
 三要素実数カラーの設定

void set (const Color4f &source)
 四要素実数カラーの設定

void setARGB (u_int source)
 ARGBカラーの設定.

u_int getARGB () const
 ARGBカラーの取得.

Color3c operator+ (const Color3c &addColor) const
 加算

Color3c operator- (const Color3c &subColor) const
 減算

Color3c operator * (const Color3c &mulColor) const
 乗算

Color3c operator * (float mulValue) const
 乗算

Color3c & operator+= (const Color3c &addColor)
 代入加算

Color3c & operator-= (const Color3c &subColor)
 代入減算

Color3c & operator *= (const Color3c &mulColor)
 代入乗算

Color3c & operator *= (float mulValue)
 代入乗算

Color3c & negative ()
 反対色

bool operator== (const Color3c &target) const
 同じ値かどうか

bool operator!= (const Color3c &target) const
 同じ値でないかどうか

String toString () const
 文字列化


Static Public Member Functions

Color3c lerp (const Color3c &source, const Color3c &target, float alpha)
 色の線形補間


Static Public Attributes

const Color3c white
 白

const Color3c gray
 灰色

const Color3c black
 黒

const Color3c red
 赤

const Color3c green
 緑

const Color3c blue
 青

const Color3c yellow
 黄

const Color3c cyan
 青緑

const Color3c magenta
 赤紫


Friends

Color3c operator * (float mulValue, const Color3c &mulColor)
 乗算


Detailed Description

三要素キャラクタカラー

このクラスは継承しないで下さい。

Definition at line 42 of file Color3c.h.


Constructor & Destructor Documentation

Lamp::Color3c::Color3c (   )  [inline]
 

コンストラクタ

このコンストラクタは初期値の設定を行わないため値は不定です。

Definition at line 101 of file Color3c.h.

Referenced by operator *(), operator+(), and operator-().

Lamp::Color3c::Color3c (  u_char  sourceR,
u_char  sourceG,
u_char  sourceB
)  [inline]
 

コンストラクタ

Parameters:
sourceR 赤の初期値
sourceG 緑の初期値
sourceB 青の初期値

Definition at line 109 of file Color3c.h.

References b, g, and r.

Lamp::Color3c::Color3c (  const Color4c &  source  )  [explicit]
 

コンストラクタ

Parameters:
source 設定する色

Definition at line 65 of file Color3c.cpp.

Lamp::Color3c::Color3c (  const Color3f &  source  )  [explicit]
 

コンストラクタ

Parameters:
source 設定する色

Definition at line 70 of file Color3c.cpp.

References set().

Lamp::Color3c::Color3c (  const Color4f &  source  )  [explicit]
 

コンストラクタ

Parameters:
source 設定する色

Definition at line 75 of file Color3c.cpp.

References set().


Member Function Documentation

u_int Lamp::Color3c::getARGB (   )  const [inline]
 

ARGBカラーの取得.

Returns:
ARGBカラー

Definition at line 181 of file Color3c.h.

References b, g, r, and u_int.

Referenced by Lamp::SpritePictureRGB8::compileImage(), and Lamp::PictureRGB8::compileImage().

Color3c Lamp::Color3c::lerp (  const Color3c &  source,
const Color3c &  target,
float  alpha
)  [inline, static]
 

色の線形補間

Parameters:
source 開始色
target 対象色
alpha ブレンド係数
Returns:
線形補間された色

Definition at line 380 of file Color3c.h.

References b, g, r, and u_char.

Color3c& Lamp::Color3c::negative (   )  [inline]
 

反対色

Returns:
反転された色

Definition at line 368 of file Color3c.h.

References b, g, r, and set().

Color3c Lamp::Color3c::operator * (  float  mulValue  )  const [inline]
 

乗算

Parameters:
mulValue 乗算する値
Returns:
乗算された色

Definition at line 235 of file Color3c.h.

References b, Color3c(), g, and r.

Color3c Lamp::Color3c::operator * (  const Color3c &  mulColor  )  const [inline]
 

乗算

Parameters:
mulColor 乗算する色
Returns:
乗算された色

Definition at line 223 of file Color3c.h.

References b, Color3c(), g, and r.

Color3c& Lamp::Color3c::operator *= (  float  mulValue  )  [inline]
 

代入乗算

Parameters:
mulValue 乗算する値
Returns:
乗算された色

Definition at line 338 of file Color3c.h.

References b, g, r, and set().

Color3c& Lamp::Color3c::operator *= (  const Color3c &  mulColor  )  [inline]
 

代入乗算

Parameters:
mulColor 乗算する色
Returns:
乗算された色

Definition at line 325 of file Color3c.h.

References b, g, r, and set().

bool Lamp::Color3c::operator!= (  const Color3c &  target  )  const [inline]
 

同じ値でないかどうか

Parameters:
target 比較するカラー
Returns:
同じ値でなければtrueを返す

Definition at line 407 of file Color3c.h.

References b, g, and r.

Color3c Lamp::Color3c::operator+ (  const Color3c &  addColor  )  const [inline]
 

加算

Parameters:
addColor 加算する色
Returns:
加算された色

Definition at line 193 of file Color3c.h.

References b, Color3c(), g, and r.

Color3c& Lamp::Color3c::operator+= (  const Color3c &  addColor  )  [inline]
 

代入加算

Parameters:
addColor 加算する色
Returns:
加算された色

Definition at line 293 of file Color3c.h.

References b, g, r, and set().

Color3c Lamp::Color3c::operator- (  const Color3c &  subColor  )  const [inline]
 

減算

Parameters:
subColor 減算する色
Returns:
減算された色

Definition at line 208 of file Color3c.h.

References b, Color3c(), g, and r.

Color3c& Lamp::Color3c::operator-= (  const Color3c &  subColor  )  [inline]
 

代入減算

Parameters:
subColor 減算する色
Returns:
減算された色

Definition at line 309 of file Color3c.h.

References b, g, r, and set().

bool Lamp::Color3c::operator== (  const Color3c &  target  )  const [inline]
 

同じ値かどうか

Parameters:
target 比較するカラー
Returns:
同じ値であればtrueを返す

Definition at line 398 of file Color3c.h.

References b, g, and r.

void Lamp::Color3c::set (  const Color4f &  source  ) 
 

四要素実数カラーの設定

Parameters:
source 設定する色

Definition at line 102 of file Color3c.cpp.

References Lamp::Color4f::b, Lamp::Color4f::g, Lamp::Color4f::r, and set().

void Lamp::Color3c::set (  const Color3f &  source  ) 
 

三要素実数カラーの設定

Parameters:
source 設定する色

Definition at line 85 of file Color3c.cpp.

References Lamp::Color3f::b, Lamp::Color3f::g, Lamp::Color3f::r, and set().

void Lamp::Color3c::set (  const Color4c &  source  ) 
 

四要素キャラクタカラーの設定

Parameters:
source 設定する色

Definition at line 80 of file Color3c.cpp.

References Lamp::Color4c::b, Lamp::Color4c::g, Lamp::Color4c::r, and set().

void Lamp::Color3c::set (  u_char  sourceR,
u_char  sourceG,
u_char  sourceB
)  [inline]
 

値の設定

Parameters:
sourceR 赤の設定値
sourceG 緑の設定値
sourceB 青の設定値

Definition at line 140 of file Color3c.h.

References b, g, and r.

Referenced by Color3c(), Lamp::LinearMinificationFilter::filter(), Lamp::TargaLoader::loadImage(), negative(), operator *=(), operator+=(), operator-=(), and set().

void Lamp::Color3c::setARGB (  u_int  source  )  [inline]
 

ARGBカラーの設定.

Parameters:
source 

Definition at line 168 of file Color3c.h.

References b, g, r, and u_char.

String Lamp::Color3c::toString (   )  const [inline]
 

文字列化

Returns:
ベクトルの文字列表記

Definition at line 418 of file Color3c.h.

References b, Lamp::String::format(), g, and r.


Friends And Related Function Documentation

Color3c operator * (  float  mulValue,
const Color3c &  mulColor
)  [friend]
 

乗算

Parameters:
mulValue 乗算する値
mulColor 乗算される色
Returns:
乗算された色

Definition at line 263 of file Color3c.h.


The documentation for this class was generated from the following files:
Generated on Wed Mar 16 10:29:45 2005 for Lamp by doxygen 1.3.2