#include <Color4c.h>
Public Member Functions | |
Color4c () | |
コンストラクタ | |
Color4c (u_char sourceR, u_char sourceG, u_char sourceB, u_char sourceA=255) | |
コンストラクタ | |
Color4c (const Color3c &source) | |
コンストラクタ | |
Color4c (const Color3f &source) | |
コンストラクタ | |
Color4c (const Color4f &source) | |
コンストラクタ | |
void | set (u_char sourceR, u_char sourceG, u_char sourceB, u_char sourceA=255) |
値の設定 | |
void | set (const Color3c &source) |
三要素キャラクタカラーの設定 | |
void | set (const Color3f &source) |
三要素実数カラーの設定 | |
void | set (const Color4f &source) |
四要素実数カラーの設定 | |
void | setARGB (u_int source) |
ARGBカラーの設定. | |
u_int | getARGB () const |
ARGBカラーの取得. | |
Color4c | operator+ (const Color4c &addColor) const |
加算 | |
Color4c | operator- (const Color4c &subColor) const |
減算 | |
Color4c | operator * (const Color4c &mulColor) const |
乗算 | |
Color4c | operator * (float mulValue) const |
乗算 | |
Color4c & | operator+= (const Color4c &addColor) |
代入加算 | |
Color4c & | operator-= (const Color4c &subColor) |
代入減算 | |
Color4c & | operator *= (const Color4c &mulColor) |
代入乗算 | |
Color4c & | operator *= (float mulValue) |
代入乗算 | |
Color4c & | negative () |
反対色 | |
bool | operator== (const Color4c &target) const |
同じ値かどうか | |
bool | operator!= (const Color4c &target) const |
同じ値でないかどうか | |
String | toString () const |
文字列化 | |
Static Public Member Functions | |
Color4c | lerp (const Color4c &source, const Color4c &target, float alpha) |
色の線形補間 | |
Static Public Attributes | |
const Color4c | white |
白 | |
const Color4c | gray |
灰色 | |
const Color4c | black |
黒 | |
const Color4c | red |
赤 | |
const Color4c | green |
緑 | |
const Color4c | blue |
青 | |
const Color4c | yellow |
黄 | |
const Color4c | cyan |
青緑 | |
const Color4c | magenta |
赤紫 | |
Friends | |
Color4c | operator * (float mulValue, const Color4c &mulColor) |
乗算 |
このクラスは継承しないで下さい。
Definition at line 42 of file Color4c.h.
|
コンストラクタ このコンストラクタは初期値の設定を行わないため値は不定です。 Definition at line 103 of file Color4c.h. Referenced by operator *(), operator+(), and operator-(). |
|
コンストラクタ
|
|
コンストラクタ
Definition at line 65 of file Color4c.cpp. |
|
コンストラクタ
Definition at line 70 of file Color4c.cpp. References set(). |
|
コンストラクタ
Definition at line 75 of file Color4c.cpp. References set(). |
|
ARGBカラーの取得.
Definition at line 189 of file Color4c.h. References a, b, g, r, and u_int. Referenced by Lamp::ColorSpriteState::apply(), Lamp::GraphicsDevice::clear(), Lamp::SpritePictureRGBA8::compileImage(), Lamp::PictureRGBA8::compileImage(), Lamp::BasicFramework::drawInformationString(), Lamp::PrimitiveRenderer::renderRequest(), Lamp::FixedShader::resetFogOptionFixed(), Lamp::RenderingDevice::setAmbientColor(), and Lamp::RenderingDevice::setFog(). |
|
色の線形補間
|
|
反対色 アルファ値は変化しません。
|
|
乗算
|
|
乗算
|
|
代入乗算
|
|
代入乗算
|
|
同じ値でないかどうか
|
|
加算
|
|
代入加算
|
|
減算
|
|
代入減算
|
|
同じ値かどうか
|
|
四要素実数カラーの設定
Definition at line 102 of file Color4c.cpp. References Lamp::Color4f::a, Lamp::Color4f::b, Lamp::Color4f::g, Lamp::Color4f::r, and set(). |
|
三要素実数カラーの設定
Definition at line 85 of file Color4c.cpp. References Lamp::Color3f::b, Lamp::Color3f::g, Lamp::Color3f::r, and set(). |
|
三要素キャラクタカラーの設定
Definition at line 80 of file Color4c.cpp. References Lamp::Color3c::b, Lamp::Color3c::g, Lamp::Color3c::r, and set(). |
|
値の設定
Definition at line 145 of file Color4c.h. Referenced by Lamp::PrimitiveDrawRequestBuilder::buildGrid(), Color4c(), Lamp::LinearMinificationFilter::filter(), Lamp::TargaLoader::loadImage(), negative(), operator *=(), operator+=(), operator-=(), set(), and Lamp::SimpleFramework::SimpleFramework(). |
|
ARGBカラーの設定.
|
|
文字列化
Definition at line 460 of file Color4c.h. References a, b, Lamp::String::format(), g, and r. |
|
乗算
|