#include <v3color.h>
Public Member Functions | |
LLColor3 () | |
LLColor3 (F32 r, F32 g, F32 b) | |
LLColor3 (const F32 *vec) | |
LLColor3 (char *color_string) | |
LLColor3 (const LLColor4 &color4) | |
LLColor3 (const LLVector4 &vector4) | |
LLColor3 (const LLSD &sd) | |
LLSD | getValue () const |
void | setValue (const LLSD &sd) |
void | calcHSL (F32 *hue, F32 *saturation, F32 *luminance) const |
const LLColor3 & | setToBlack () |
const LLColor3 & | setToWhite () |
const LLColor3 & | setVec (F32 x, F32 y, F32 z) |
const LLColor3 & | setVec (const LLColor3 &vec) |
const LLColor3 & | setVec (const F32 *vec) |
F32 | magVec () const |
F32 | magVecSquared () const |
F32 | normVec () |
F32 | brightness () const |
const LLColor3 & | operator= (const LLColor4 &a) |
void | clamp () |
void | exp () |
Public Attributes | |
F32 | mV [LENGTHOFCOLOR3] |
Static Public Attributes | |
static LLColor3 | white |
static LLColor3 | black |
static LLColor3 | grey |
Friends | |
std::ostream & | operator<< (std::ostream &s, const LLColor3 &a) |
LLColor3 | operator+ (const LLColor3 &a, const LLColor3 &b) |
LLColor3 | operator- (const LLColor3 &a, const LLColor3 &b) |
const LLColor3 & | operator+= (LLColor3 &a, const LLColor3 &b) |
const LLColor3 & | operator-= (LLColor3 &a, const LLColor3 &b) |
const LLColor3 & | operator*= (LLColor3 &a, const LLColor3 &b) |
LLColor3 | operator* (const LLColor3 &a, const LLColor3 &b) |
LLColor3 | operator* (const LLColor3 &a, F32 k) |
LLColor3 | operator* (F32 k, const LLColor3 &a) |
bool | operator== (const LLColor3 &a, const LLColor3 &b) |
bool | operator!= (const LLColor3 &a, const LLColor3 &b) |
const LLColor3 & | operator*= (LLColor3 &a, F32 k) |
LLColor3 | operator- (const LLColor3 &a) |
Definition at line 46 of file v3color.h.
LLColor3::LLColor3 | ( | void | ) | [inline] |
Definition at line 155 of file v3color.h.
References mV.
Referenced by lerp(), operator*(), operator+(), and operator-().
LLColor3::LLColor3 | ( | const F32 * | vec | ) | [inline] |
LLColor3::LLColor3 | ( | char * | color_string | ) | [inline] |
LLColor3::LLColor3 | ( | const LLColor4 & | color4 | ) | [explicit] |
LLColor3::LLColor3 | ( | const LLVector4 & | vector4 | ) | [explicit] |
LLColor3::LLColor3 | ( | const LLSD & | sd | ) |
LLSD LLColor3::getValue | ( | ) | const [inline] |
Definition at line 65 of file v3color.h.
References mV.
Referenced by LLControlGroup::declareColor3().
void LLColor3::setValue | ( | const LLSD & | sd | ) | [inline] |
Definition at line 74 of file v3color.h.
References mV.
Referenced by LLFloaterSettingsDebug::onCommitSettings(), and LLFloaterSettingsDebug::updateControl().
const LLColor3 & LLColor3::setToBlack | ( | void | ) | [inline] |
Definition at line 197 of file v3color.h.
References mV.
Referenced by LLHaze::LLHaze(), and LLHeavenBody::LLHeavenBody().
const LLColor3 & LLColor3::setToWhite | ( | void | ) | [inline] |
Definition at line 213 of file v3color.h.
References mV.
Referenced by LLVOSky::updateSky().
F32 LLColor3::magVec | ( | void | ) | const [inline] |
Definition at line 242 of file v3color.h.
Referenced by LLVOSky::updateSky().
F32 LLColor3::magVecSquared | ( | void | ) | const [inline] |
F32 LLColor3::normVec | ( | void | ) | [inline] |
Definition at line 252 of file v3color.h.
Referenced by LLDrawPoolWater::shade().
F32 LLColor3::brightness | ( | void | ) | const [inline] |
Definition at line 237 of file v3color.h.
References mV.
Referenced by LLVOSky::calcSkyColorInDir(), and LLVOSky::calcSkyColorWLVert().
void LLColor3::clamp | ( | ) | [inline] |
Definition at line 122 of file v3color.h.
References mV.
Referenced by LLVOSky::calcAtmospherics(), and LLVOSky::updateReflectionGeometry().
void LLColor3::exp | ( | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | s, | |
const LLColor3 & | a | |||
) | [friend] |
Definition at line 71 of file v3color.cpp.
Definition at line 49 of file v3color.h.
Referenced by brightness(), LLVOSky::calcAtmospherics(), calcHSL(), LLVOSky::calcSkyColorWLVert(), clamp(), color_div(), color_gamma_correct(), color_intens(), color_max(), color_min(), color_pow(), componentDiv(), componentExp(), componentMult(), componentMultBy(), componentPow(), componentSaturate(), componentSqrt(), distVec(), distVec_squared(), exp(), getValue(), lerp(), LLColor3(), LLColor4::LLColor4(), magVec(), magVecSquared(), normVec(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator<<(), LLColor4::operator=(), operator=(), operator==(), refr_ind_calc(), LLHUDEffectLookAt::render(), setToBlack(), setToWhite(), setValue(), LLColor4::setVec(), setVec(), LLColor4U::setVecScaleClamp(), LLDrawPoolWater::shade(), LLVOSky::updateFog(), LLVOSky::updateSky(), and vec3to4().
LLColor3 LLColor3::white [static] |
Definition at line 51 of file v3color.h.
Referenced by LLVOSky::calcSkyColorWLVert(), LLControlGroup::getColor3(), and LLVOSky::updateFog().
LLColor3 LLColor3::black [static] |
LLColor3 LLColor3::grey [static] |