NLMISC::CRGBA Class Reference

Class pixel RGBA. More...

#include <rgba.h>

List of all members.

Public Member Functions

 CRGBA ()
 Default constructor. do nothing.
 CRGBA (uint8 r, uint8 g, uint8 b, uint8 a=255)
 Constructor.
void setPacked (uint packed)
 setup as a packed pixel
uint getPacked () const
 Return a packed pixel.
bool operator< (CRGBA c) const
 Comparison operator.
bool operator!= (CRGBA c) const
 Comparison operator.
bool operator== (CRGBA c) const
 Equality operator.
void serial (class NLMISC::IStream &f)
 Serialisation.
void blendFromui (CRGBA c0, CRGBA c1, uint coef)
 Blend two colors.
void modulateFromui (CRGBA c0, uint a)
 Modulate colors with a constant.
void modulateFromColor (CRGBA c0, CRGBA c1)
 Modulate colors with another color.
void set (uint8 r, uint8 g, uint8 b, uint8 a=255)
 Set colors.
uint16 get565 () const
 Get a 16 bits 565 pixel.
void set565 (uint16 col)
 Set the RGB fields with a 16 bits 565 pixel.
void avg2 (CRGBA a, CRGBA b)
 Compute in this the average of 2 RGBA.
void avg4 (CRGBA a, CRGBA b, CRGBA c, CRGBA d)
 Compute in this the average of 4 RGBA.
void add (CRGBA c0, CRGBA c1)
 Do the sum of 2 rgba, clamp, and store in this.
void sub (CRGBA c0, CRGBA c1)
 Compute c0 - c1, and store in this.
void swapBR ()
 Swap the B and R components, to simulate a CBRGA.
RGBOnly methods. Same f() as their homonym, but don't modify A component.



void blendFromuiRGBOnly (CRGBA c0, CRGBA c1, uint coef)
 see blendFromui()
void modulateFromuiRGBOnly (CRGBA c0, uint a)
 see modulateFromui()
void modulateFromColorRGBOnly (CRGBA c0, CRGBA c1)
 see modulateFromColor()
void avg2RGBOnly (CRGBA a, CRGBA b)
 see avg2()
void avg4RGBOnly (CRGBA a, CRGBA b, CRGBA c, CRGBA d)
 see avg4()
void addRGBOnly (CRGBA c0, CRGBA c1)
 see add()
void subRGBOnly (CRGBA c0, CRGBA c1)
 see sub()
Color space conversions RGB only



bool convertToHLS (float &h, float &l, float &S) const
 Convert to HLS color space.
void buildFromHLS (float h, float l, float s)
 Build from HLS valued Each component ranges from 0 to 1.f.

Static Public Member Functions

Color group manipulation



static void addColors (CRGBA *dest, const CRGBA *src1, const CRGBA *src2, uint numColors, uint srcStride=sizeof(CRGBA), uint destStride=sizeof(CRGBA), uint dup=1)
 Add a group of colors with saturation, using mmx instructions when present.
static void modulateColors (CRGBA *dest, const CRGBA *src1, const CRGBA *src2, uint numColors, uint srcStride=sizeof(CRGBA), uint destStride=sizeof(CRGBA), uint dup=1)
 Modulate a group of colors with saturation, using mmx instructions when present.
static void subtractColors (CRGBA *dest, const CRGBA *src1, const CRGBA *src2, uint numColors, uint srcStride=sizeof(CRGBA), uint destStride=sizeof(CRGBA), uint dup=1)
 Subtract a group of colors with saturation (src1 - src2), using mmx instructions when present.

Public Attributes

uint8 R
 Red componant.
uint8 G
 Green componant.
uint8 B
 Blue componant.
uint8 A
 Alpha componant.

Static Public Attributes

static const CRGBA Black
 some colors
static const CRGBA Red
static const CRGBA Green
static const CRGBA Yellow
static const CRGBA Blue
static const CRGBA Magenta
static const CRGBA Cyan
static const CRGBA White

Detailed Description

Class pixel RGBA.

Author:
Cyril Corvazier
Nevrax France
Date:
2000

Definition at line 44 of file rgba.h.


Constructor & Destructor Documentation

NLMISC::CRGBA::CRGBA (  )  [inline]

Default constructor. do nothing.

Definition at line 49 of file rgba.h.

NLMISC::CRGBA::CRGBA ( uint8  r,
uint8  g,
uint8  b,
uint8  a = 255 
) [inline]

Constructor.

Parameters:
r Red componant.
g Green componant.
b Blue componant.
a Alpha componant.

Definition at line 58 of file rgba.h.


Member Function Documentation

void NLMISC::CRGBA::add ( CRGBA  c0,
CRGBA  c1 
) [inline]

Do the sum of 2 rgba, clamp, and store in this.

Definition at line 201 of file rgba.h.

References A, B, G, min, and R.

Referenced by addColors(), NL3D::CTextureEmboss::doGenerate(), modulateColors(), subtractColors(), and NL3D::CParticleSystemModel::traverseRender().

void NLMISC::CRGBA::addColors ( CRGBA dest,
const CRGBA src1,
const CRGBA src2,
uint  numColors,
uint  srcStride = sizeof(CRGBA),
uint  destStride = sizeof(CRGBA),
uint  dup = 1 
) [static]

Add a group of colors with saturation, using mmx instructions when present.

Parameters:
dest The destination color buffer, encoded as CRGBA's.
src1 The first source color buffer, encoded as CRGBA's.
src2 The second source color buffer, encoded as CRGBA's.
numColors The number of colors to compute
Stride between each source color.
Stride between each destination color.
Dup the number of time the result must be duplicated in the destination.

Definition at line 78 of file rgba.cpp.

References add(), NLMISC::CSystemInfo::hasMMX(), and sub().

Referenced by NL3D::Make4Private(), NL3D::MakeNPrivate(), and NL3D::MakePrivate().

void NLMISC::CRGBA::addRGBOnly ( CRGBA  c0,
CRGBA  c1 
) [inline]
void NLMISC::CRGBA::avg2 ( CRGBA  a,
CRGBA  b 
) [inline]

Compute in this the average of 2 RGBA.

Definition at line 178 of file rgba.h.

References A, B, G, and R.

void NLMISC::CRGBA::avg2RGBOnly ( CRGBA  a,
CRGBA  b 
) [inline]

see avg2()

Definition at line 250 of file rgba.h.

References B, G, and R.

Referenced by NL3D::CPatch::getCurrentTileTLIColors().

void NLMISC::CRGBA::avg4 ( CRGBA  a,
CRGBA  b,
CRGBA  c,
CRGBA  d 
) [inline]

Compute in this the average of 4 RGBA.

The average is "correct": +1 is added to the four color, to make a "round" like average.

Definition at line 190 of file rgba.h.

References A, B, G, and R.

Referenced by NLMISC::CBitmap::resamplePicture32Fast().

void NLMISC::CRGBA::avg4RGBOnly ( CRGBA  a,
CRGBA  b,
CRGBA  c,
CRGBA  d 
) [inline]

see avg4()

Definition at line 257 of file rgba.h.

References B, G, and R.

Referenced by NL3D::CPatchDLMContext::computeTextureFar().

void NLMISC::CRGBA::blendFromui ( CRGBA  c0,
CRGBA  c1,
uint  coef 
) [inline]
void NLMISC::CRGBA::blendFromuiRGBOnly ( CRGBA  c0,
CRGBA  c1,
uint  coef 
) [inline]
void NLMISC::CRGBA::buildFromHLS ( float  h,
float  l,
float  s 
)

Build from HLS valued Each component ranges from 0 to 1.f.

Definition at line 687 of file rgba.cpp.

References B, NLMISC::clamp(), G, NLMISC::HLSValue(), and R.

Referenced by NL3D::CFastHLSModifier::CFastHLSModifier().

bool NLMISC::CRGBA::convertToHLS ( float h,
float l,
float S 
) const

Convert to HLS color space.

Lightness and satuation ranges from 0 to 1 There's no range for hue, (all hues colors range from 0 to 360, from 360 to 720 and so on)

Returns:
true if the color is achromatic

get lightness

Get saturation

compute saturation

Definition at line 609 of file rgba.cpp.

References B, G, NLMISC::maxof(), NLMISC::minof(), and R.

Referenced by NL3D::CFastHLSModifier::CFastHLSModifier(), and NL3D::CFastHLSModifier::convertRGBABitmap().

uint16 NLMISC::CRGBA::get565 (  )  const [inline]

Get a 16 bits 565 pixel.

Definition at line 154 of file rgba.h.

References B, G, and R.

Referenced by NL3D::CFastHLSModifier::applyHLSMod().

uint NLMISC::CRGBA::getPacked (  )  const [inline]

Return a packed pixel.

Definition at line 75 of file rgba.h.

References A, B, G, and R.

Referenced by NL3D::CRenderTrav::changeVPLightSetupMaterial(), operator<(), NL3D::CDriverGL::setupLightMapPass(), and NL3D::CDriverGL::setupMaterial().

void NLMISC::CRGBA::modulateColors ( CRGBA dest,
const CRGBA src1,
const CRGBA src2,
uint  numColors,
uint  srcStride = sizeof(CRGBA),
uint  destStride = sizeof(CRGBA),
uint  dup = 1 
) [static]

Modulate a group of colors with saturation, using mmx instructions when present.

Parameters:
dest The destination color buffer, encoded as CRGBA's.
src1 The first source color buffer, encoded as CRGBA's.
src2 The second source color buffer, encoded as CRGBA's.
numColors The number of colors to compute
Stride between each color. It is the same for sources and destination.

Definition at line 239 of file rgba.cpp.

References add(), NLMISC::CSystemInfo::hasMMX(), modulateFromColor(), and sub().

Referenced by NL3D::CPSConstraintMesh::computeColors(), NL3D::Make4Private(), NL3D::MakeNPrivate(), and NL3D::MakePrivate().

void NLMISC::CRGBA::modulateFromColor ( CRGBA  c0,
CRGBA  c1 
) [inline]
void NLMISC::CRGBA::modulateFromColorRGBOnly ( CRGBA  c0,
CRGBA  c1 
) [inline]
void NLMISC::CRGBA::modulateFromui ( CRGBA  c0,
uint  a 
) [inline]

Modulate colors with a constant.

Parameters:
c0 Color 0.
a E [0,256]. c0*a returned into this.

Definition at line 119 of file rgba.h.

References A, B, G, and R.

Referenced by NL3D::CVegetableLightEx::computeCurrentColors(), NL3D::CTextureEmboss::doGenerate(), NL3D::CParticleSystemModel::traverseRender(), and NL3D::CFlareModel::traverseRender().

void NLMISC::CRGBA::modulateFromuiRGBOnly ( CRGBA  c0,
uint  a 
) [inline]
bool NLMISC::CRGBA::operator!= ( CRGBA  c  )  const [inline]

Comparison operator.

Definition at line 84 of file rgba.h.

bool NLMISC::CRGBA::operator< ( CRGBA  c  )  const [inline]

Comparison operator.

Definition at line 80 of file rgba.h.

References getPacked().

bool NLMISC::CRGBA::operator== ( CRGBA  c  )  const [inline]

Equality operator.

Definition at line 89 of file rgba.h.

References A, B, G, and R.

void NLMISC::CRGBA::serial ( class NLMISC::IStream f  ) 

Serialisation.

Parameters:
f Stream used for serialisation.

Definition at line 57 of file rgba.cpp.

References A, B, G, R, and NLMISC::IStream::serial().

void NLMISC::CRGBA::set ( uint8  r,
uint8  g,
uint8  b,
uint8  a = 255 
)
void NLMISC::CRGBA::set565 ( uint16  col  )  [inline]
void NLMISC::CRGBA::setPacked ( uint  packed  )  [inline]

setup as a packed pixel

Definition at line 64 of file rgba.h.

References A, B, G, and R.

void NLMISC::CRGBA::sub ( CRGBA  c0,
CRGBA  c1 
) [inline]

Compute c0 - c1, and store in this.

Definition at line 213 of file rgba.h.

References A, B, G, and R.

Referenced by addColors(), modulateColors(), and subtractColors().

void NLMISC::CRGBA::subRGBOnly ( CRGBA  c0,
CRGBA  c1 
) [inline]

see sub()

Definition at line 272 of file rgba.h.

References B, G, and R.

void NLMISC::CRGBA::subtractColors ( CRGBA dest,
const CRGBA src1,
const CRGBA src2,
uint  numColors,
uint  srcStride = sizeof(CRGBA),
uint  destStride = sizeof(CRGBA),
uint  dup = 1 
) [static]

Subtract a group of colors with saturation (src1 - src2), using mmx instructions when present.

Parameters:
dest The destination color buffer, encoded as CRGBA's.
src1 The first source color buffer, encoded as CRGBA's.
src2 The second source color buffer, encoded as CRGBA's.
numColors The number of colors to compute
Stride between each color. It is the same for sources and destination.

Definition at line 413 of file rgba.cpp.

References add(), NLMISC::CSystemInfo::hasMMX(), and sub().

Referenced by NL3D::Make4Private(), NL3D::MakeNPrivate(), and NL3D::MakePrivate().

void NLMISC::CRGBA::swapBR (  )  [inline]

Swap the B and R components, to simulate a CBRGA.

Definition at line 333 of file rgba.h.

References B, and R.

Referenced by NL3D::CVegetableManager::addInstance(), NL3D::CLodCharacterManager::addRenderCharacterKey(), NL3D::CMeshMultiLod::renderCoarseMesh(), and NL3D::CVegetableManager::updateInstanceLighting().


Member Data Documentation

Alpha componant.

Definition at line 346 of file rgba.h.

Referenced by add(), NL3D::CVegetableManager::addInstance(), NL3D::CLodCharacterManager::addRenderCharacterKey(), NL3D::CLodCharacterManager::addTextureCompute(), NL3D::CCloudScape::anim(), NL3D::CMRMBuilder::attToColor(), avg2(), avg4(), blendFromui(), NL3D::CPatchDLMContext::blendTileToTexture(), NL3D::CTextureFile::buildBitmapFromFile(), NL3D::CMRMBuilder::buildBlendShapes(), NLMISC::CBitmap::buildMipMaps(), NLMISC::CBGRA::CBGRA(), NL3D::CRenderTrav::changeLightSetup(), NL3D::CDriverGL::clear2D(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CWaterShape::computeEnvMapMeanColor(), NL3D::computeVegetVertexLighting(), NL3D::computeVegetVertexLightingForceBestSided(), NL3D::convColor(), NL3D::convertVBColor(), NL3D::CMaterialBase::copyFromMaterial(), NL3D::copyToValue(), NLMISC::CBitmap::decompressDXT1(), NL3D::CTextureEmboss::doGenerate(), NL3D::CLodCharacterManager::endTextureCompute(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CDriverGL::forceActivateTexEnvColor(), NL3D::CMeshMultiLodInstance::getCoarseMeshLighting(), NLMISC::CBitmap::getDXTCColorFromBlock(), NL3D::CDriverGL::getFogColor(), NL3D::CMaterial::getOpacity(), getPacked(), NL3D::CCloud::light(), modulateFromColor(), modulateFromui(), NL3D_drawFarTileInFarTextureAdditiveAlpha(), NL3D_drawFarTileInFarTextureAlpha(), operator==(), NL3D::CMeshBlender::prepareRenderForGlobalAlphaCoarseMesh(), NL3D::CTextContext::printAt(), NL3D::CTextContext::printClipAt(), NL3D::CTextContext::printClipAtUnProjected(), NL3D::CTextContext::printfAt(), NLLIGO::IPrimitive::read(), serial(), set(), NL3D::CDriverGL::setBlendConstantColor(), NL3D::setColor(), NL3D::CMaterial::setOpacity(), setPacked(), NL3D::CTileFarBank::CTileFar::setPixels(), NL3D::CDriverGL::setupFog(), NL3D::CDriverGL::setupLightMapPass(), NL3D::CDriverGL::setupMaterial(), NL3D::CDriverD3D::setupMaterial(), NL3D::CLandscape::setupStaticLight(), NL3D::CDriverGLStates::setVertexColorLighted(), sub(), NLMISC::CBitmap::uncompress(), NL3D::CAnimatedMaterial::update(), NL3D::CVegetableManager::updateInstanceLighting(), and NLLIGO::IPrimitive::write().

Blue componant.

Definition at line 344 of file rgba.h.

Referenced by add(), NL3D::CVegetableManager::addInstance(), NL3D::CPatchDLMContext::addPointLightInfluence(), addRGBOnly(), NL3D::CCloudScape::anim(), NL3D::CMRMBuilder::attToColor(), avg2(), avg2RGBOnly(), avg4(), avg4RGBOnly(), NL3D::bilinearColor(), NL3D::bilinearColorAndAdd(), NL3D::bilinearColorAndModulate(), NL3D::bilinearColorAndModulatex2(), NL3D::bilinearColorDiv2AndAdd(), blendFromui(), blendFromuiRGBOnly(), NL3D::CTextureFile::buildBitmapFromFile(), NL3D::CMRMBuilder::buildBlendShapes(), buildFromHLS(), NLMISC::CBitmap::buildMipMaps(), NLMISC::CBGRA::CBGRA(), NL3D::CDriverGL::clear2D(), NL3D::CPatchDLMPointLight::compile(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CPatch::computeCurrentTLILightmapDiv2(), NL3D::CWaterShape::computeEnvMapMeanColor(), NL3D::computeLodLighting(), NL3D::CLightingManager::computeModelLightContributions(), NL3D::CShadowMapManager::computeShadowColors(), NL3D::CShadowMapManager::computeShadowDirection(), NL3D::convColor(), convertToHLS(), NLGEORGES::CFormElm::convertValue(), NL3D::convertVBColor(), NL3D::copyToValue(), NLMISC::CBitmap::decompressDXT1(), NLMISC::CBitmap::decompressDXT3(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CDriverGL::forceActivateTexEnvColor(), get565(), NL3D::CDriverGL::getFogColor(), getPacked(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CTextureDLM::modulateAndfillRect8888(), NL3D::CTextureDLM::modulateConstantAndfillRect(), modulateFromColor(), modulateFromColorRGBOnly(), modulateFromui(), modulateFromuiRGBOnly(), NL3D_drawFarTileInFarTexture(), NL3D_drawFarTileInFarTextureAdditive(), NL3D_drawFarTileInFarTextureAdditiveAlpha(), NL3D_drawFarTileInFarTextureAlpha(), NL3D_expandLightmap(), operator==(), NL3D::PSBinOpAdd(), NL3D::PSBinOpSubtract(), NLLIGO::IPrimitive::read(), NL3D::CLandscape::render(), NL3D::CSkeletonModel::renderCLod(), NL3D::CShadowMapManager::renderProject(), serial(), set(), set565(), NL3D::CDriverGL::setAmbientColor(), NL3D::CDriverGL::setBlendConstantColor(), NL3D::setColor(), NL3D::CMaterial::setDiffuse(), NL3D::CDriverGL::setLightInternal(), setPacked(), NL3D::CDriverGL::setupFog(), NL3D::CDriverGL::setupLightMapPass(), NL3D::CDriverGL::setupMaterial(), NL3D::CDriverD3D::setupMaterial(), NL3D::CLandscape::setupStaticLight(), NLGEORGES::CFormElm::setValueByName(), NL3D::CDriverGLStates::setVertexColorLighted(), sub(), subRGBOnly(), swapBR(), NLMISC::CBitmap::uncompress(), and NLLIGO::IPrimitive::write().

const CRGBA NLMISC::CRGBA::Black [static]
const CRGBA NLMISC::CRGBA::Blue [static]

Definition at line 354 of file rgba.h.

Referenced by NL3D::CPSLight::show().

const CRGBA NLMISC::CRGBA::Cyan [static]

Definition at line 356 of file rgba.h.

Green componant.

Definition at line 342 of file rgba.h.

Referenced by add(), NL3D::CVegetableManager::addInstance(), NL3D::CPatchDLMContext::addPointLightInfluence(), addRGBOnly(), NL3D::CCloudScape::anim(), NL3D::CMRMBuilder::attToColor(), avg2(), avg2RGBOnly(), avg4(), avg4RGBOnly(), NL3D::bilinearColor(), NL3D::bilinearColorAndAdd(), NL3D::bilinearColorAndModulate(), NL3D::bilinearColorAndModulatex2(), NL3D::bilinearColorDiv2AndAdd(), blendFromui(), blendFromuiRGBOnly(), NL3D::CTextureFile::buildBitmapFromFile(), NL3D::CMRMBuilder::buildBlendShapes(), buildFromHLS(), NLMISC::CBitmap::buildMipMaps(), NL3D::CIGSurfaceLightBuild::buildPLDebugMesh(), NLMISC::CBGRA::CBGRA(), NL3D::CDriverGL::clear2D(), NL3D::CPatchDLMPointLight::compile(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CPatch::computeCurrentTLILightmapDiv2(), NL3D::CWaterShape::computeEnvMapMeanColor(), NL3D::computeLodLighting(), NL3D::CLightingManager::computeModelLightContributions(), NL3D::CShadowMapManager::computeShadowColors(), NL3D::CShadowMapManager::computeShadowDirection(), NL3D::convColor(), convertToHLS(), NLGEORGES::CFormElm::convertValue(), NL3D::convertVBColor(), NL3D::copyToValue(), NLMISC::CBitmap::decompressDXT1(), NLMISC::CBitmap::decompressDXT3(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CDriverGL::forceActivateTexEnvColor(), get565(), NL3D::CDriverGL::getFogColor(), getPacked(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CTextureDLM::modulateAndfillRect8888(), NL3D::CTextureDLM::modulateConstantAndfillRect(), modulateFromColor(), modulateFromColorRGBOnly(), modulateFromui(), modulateFromuiRGBOnly(), NL3D_drawFarTileInFarTexture(), NL3D_drawFarTileInFarTextureAdditive(), NL3D_drawFarTileInFarTextureAdditiveAlpha(), NL3D_drawFarTileInFarTextureAlpha(), NL3D_expandLightmap(), operator==(), NL3D::PSBinOpAdd(), NL3D::PSBinOpSubtract(), NLLIGO::IPrimitive::read(), NL3D::CLandscape::render(), NL3D::CSkeletonModel::renderCLod(), NL3D::CShadowMapManager::renderProject(), serial(), set(), set565(), NL3D::CDriverGL::setAmbientColor(), NL3D::CDriverGL::setBlendConstantColor(), NL3D::setColor(), NL3D::CMaterial::setDiffuse(), NL3D::CDriverGL::setLightInternal(), setPacked(), NL3D::CDriverGL::setupFog(), NL3D::CDriverGL::setupLightMapPass(), NL3D::CDriverGL::setupMaterial(), NL3D::CDriverD3D::setupMaterial(), NL3D::CLandscape::setupStaticLight(), NLGEORGES::CFormElm::setValueByName(), NL3D::CDriverGLStates::setVertexColorLighted(), sub(), subRGBOnly(), NLMISC::CBitmap::uncompress(), and NLLIGO::IPrimitive::write().

const CRGBA NLMISC::CRGBA::Green [static]

Definition at line 352 of file rgba.h.

const CRGBA NLMISC::CRGBA::Magenta [static]

Definition at line 355 of file rgba.h.

Red componant.

Definition at line 340 of file rgba.h.

Referenced by add(), NL3D::CVegetableManager::addInstance(), NL3D::CHLSColorTexture::addMask(), NL3D::CPatchDLMContext::addPointLightInfluence(), addRGBOnly(), NL3D::CCloudScape::anim(), NL3D::CMRMBuilder::attToColor(), avg2(), avg2RGBOnly(), avg4(), avg4RGBOnly(), NL3D::bilinearColor(), NL3D::bilinearColorAndAdd(), NL3D::bilinearColorAndModulate(), NL3D::bilinearColorAndModulatex2(), NL3D::bilinearColorDiv2AndAdd(), blendFromui(), blendFromuiRGBOnly(), NL3D::CVegetableShape::build(), NL3D::CTextureFile::buildBitmapFromFile(), NL3D::CMRMBuilder::buildBlendShapes(), buildFromHLS(), NLMISC::CBitmap::buildMipMaps(), NL3D::CIGSurfaceLightBuild::buildPLDebugMesh(), NLMISC::CBGRA::CBGRA(), NL3D::CDriverGL::clear2D(), NL3D::CPatchDLMPointLight::compile(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CPatch::computeCurrentTLILightmapDiv2(), NL3D::CWaterShape::computeEnvMapMeanColor(), NL3D::computeLodLighting(), NL3D::CLightingManager::computeModelLightContributions(), NL3D::CShadowMapManager::computeShadowColors(), NL3D::CShadowMapManager::computeShadowDirection(), NL3D::convColor(), convertToHLS(), NLGEORGES::CFormElm::convertValue(), NL3D::convertVBColor(), NL3D::copyToValue(), NLMISC::CBitmap::decompressDXT1(), NLMISC::CBitmap::decompressDXT3(), NL3D::CTextureEmboss::doGenerate(), NL3D::CMRMBuilder::findInsertColorInBaseMesh(), NL3D::CDriverGL::forceActivateTexEnvColor(), get565(), NL3D::CDriverGL::getFogColor(), getPacked(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D::CTextureDLM::modulateAndfillRect8888(), NL3D::CTextureDLM::modulateConstantAndfillRect(), modulateFromColor(), modulateFromColorRGBOnly(), modulateFromui(), modulateFromuiRGBOnly(), NL3D_drawFarTileInFarTexture(), NL3D_drawFarTileInFarTextureAdditive(), NL3D_drawFarTileInFarTextureAdditiveAlpha(), NL3D_drawFarTileInFarTextureAlpha(), NL3D_expandLightmap(), operator==(), NL3D::PSBinOpAdd(), NL3D::PSBinOpSubtract(), NLLIGO::IPrimitive::read(), NL3D::CLandscape::render(), NL3D::CSkeletonModel::renderCLod(), NL3D::CShadowMapManager::renderProject(), serial(), set(), set565(), NL3D::CDriverGL::setAmbientColor(), NL3D::CDriverGL::setBlendConstantColor(), NL3D::setColor(), NL3D::CMaterial::setDiffuse(), NL3D::CDriverGL::setLightInternal(), setPacked(), NL3D::CDriverGL::setupFog(), NL3D::CDriverGL::setupLightMapPass(), NL3D::CDriverGL::setupMaterial(), NL3D::CDriverD3D::setupMaterial(), NL3D::CLandscape::setupStaticLight(), NLGEORGES::CFormElm::setValueByName(), NL3D::CDriverGLStates::setVertexColorLighted(), sub(), subRGBOnly(), swapBR(), NLMISC::CBitmap::uncompress(), and NLLIGO::IPrimitive::write().

const CRGBA NLMISC::CRGBA::Red [static]
const CRGBA NLMISC::CRGBA::White [static]
const CRGBA NLMISC::CRGBA::Yellow [static]

Definition at line 353 of file rgba.h.


The documentation for this class was generated from the following files:

Generated on Thu Jan 7 08:30:18 2010 for NeL by  doxygen 1.6.1