Class pixel RGBA. More...
#include <rgba.h>
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 |
Class pixel RGBA.
Definition at line 44 of file rgba.h.
| NLMISC::CRGBA::CRGBA | ( | ) | [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.
| 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().
see add()
Definition at line 264 of file rgba.h.
Referenced by NL3D::CPatchDLMContext::addPointLightInfluence(), NL3D::CRenderTrav::changeLightSetup(), NL3D::CLightContribution::computeCurrentAmbient(), NL3D::computeVegetVertexLighting(), NL3D::computeVegetVertexLightingForceBestSided(), NL3D::CMeshMultiLodInstance::getCoarseMeshLighting(), NL3D::CPatch::getCurrentTLIColor(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), NL3D_expandLightmap(), NL3D::CSkeletonModel::renderCLod(), and NL3D::CDriverGL::setupLightMapPass().
Blend two colors.
| c0 | Color 0. | |
| c1 | Color 1. | |
| coef | Blend factor. 0~256. 0 return c0 and 256 return c1. |
Definition at line 104 of file rgba.h.
Referenced by NL3D::CMeshMRMGeom::applyGeomorphWithVBHardPtr(), NLMISC::blend(), NL3D::CHLSColorTexture::compressBlockRGB(), NLMISC::CBitmap::decompressDXT1(), NLMISC::CBitmap::decompressDXT3(), NLMISC::CBitmap::decompressDXT5(), NL3D::CTrackKeyFramerLinear< CKeyRGBA, NLMISC::CRGBA >::evalKey(), NLMISC::CBitmap::getDXTCColorFromBlock(), NL3D_expandLightmap(), NL3D::PSValueBlend(), and NL3D::CHLSColorTexture::uncompressBlockRGB().
see blendFromui()
Definition at line 227 of file rgba.h.
Referenced by NL3D::CPatchDLMContext::blendTileToTexture(), NL3D::CHLSColorTexture::buildColorVersion(), and NL3D::CFastHLSModifier::convert().
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().
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)
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] |
| uint NLMISC::CRGBA::getPacked | ( | ) | const [inline] |
Return a packed pixel.
Definition at line 75 of file rgba.h.
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.
| 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().
Modulate colors with another color.
| c0 | Color 0. | |
| c1 | Color 1. c0*c1 returned into this. |
Definition at line 133 of file rgba.h.
Referenced by NL3D::CPSShockWave::draw(), NL3D::CPSDot::draw(), NL3D::CZoneLighter::lightWater(), modulateColors(), NL3D::PSBinOpModulate(), NL3D::CComputedString::render2DClip(), NL3D::CPointLightNamed::setLightFactor(), NL3D::CPSTailDot::setupGlobalColor(), NL3D::CPSFanLight::setupMaterial(), NL3D::CPSRibbon::setupTexturedGlobalColor(), NL3D::CPSRibbon::setupUntexturedGlobalColor(), NL3D::CPSLight::step(), NL3D::CFlareModel::traverseRender(), NL3D::CParticleSystem::updateColor(), and NL3D::CPSQuad::updateMatBeforeRendering().
Definition at line 243 of file rgba.h.
Referenced by NL3D::CVegetableManager::addInstance(), NL3D::CPatch::getCurrentTLIColor(), NL3D_expandLightmap(), and NL3D::CVegetableManager::updateInstanceLighting().
Modulate colors with a constant.
| c0 | Color 0. | |
| a | E [0,256]. c0*a returned into this. |
Definition at line 119 of file rgba.h.
Referenced by NL3D::CVegetableLightEx::computeCurrentColors(), NL3D::CTextureEmboss::doGenerate(), NL3D::CParticleSystemModel::traverseRender(), and NL3D::CFlareModel::traverseRender().
see modulateFromui()
Definition at line 236 of file rgba.h.
Referenced by NL3D::CRenderTrav::changeLightSetup(), NL3D::computeVegetVertexLighting(), NL3D::computeVegetVertexLightingForceBestSided(), NL3D::CFastHLSModifier::convert(), NL3D::CMeshMultiLodInstance::getCoarseMeshLighting(), NL3D::CPatch::getCurrentTLIColor(), NL3D::CSurfaceLightGrid::getStaticLightSetup(), and NL3D::CSkeletonModel::renderCLod().
| void NLMISC::CRGBA::serial | ( | class NLMISC::IStream & | f | ) |
Set colors.
| r | Red componant. | |
| g | Green componant. | |
| b | Blue componant. | |
| a | Alpha componant. |
Definition at line 65 of file rgba.cpp.
Referenced by NL3D::CIGSurfaceLightBuild::buildPLDebugMesh(), NL3D::CMesh::CCorner::CCorner(), NL3D::CRenderTrav::changeVPLightSetupMaterial(), NL3D::CLandscape::CLandscape(), NL3D::CMaterial::CLightMap::CLightMap(), NL3D::CMaterial::CMaterial(), CEGUI::NeLRenderer::colorToNeL(), NL3D::CTransform::CTransform(), NL3D::CVegetableManager::CVegetableManager(), NLMISC::CBitmap::decompressDXT1(), NLMISC::CBitmap::getDXTCColorFromBlock(), NLMISC::CBitmap::makeDummyFromBitField(), ReadColor(), NL3D::CRenderTrav::resetLightSetup(), NL3D::CMaterial::CTexEnv::setDefault(), NL3D::CDriverGL::setDisplay(), and NL3D::CDriverGL::swapBuffers().
| void NLMISC::CRGBA::set565 | ( | uint16 | col | ) | [inline] |
Set the RGB fields with a 16 bits 565 pixel.
Definition at line 162 of file rgba.h.
Referenced by NL3D::CFastHLSModifier::CFastHLSModifier(), NL3D::CHLSColorTexture::compressBlockRGB(), NL3D::CPatch::getTileTileColors(), NL3D_expandLightmap(), and NL3D::CHLSColorTexture::uncompressBlockRGB().
| void NLMISC::CRGBA::setPacked | ( | uint | packed | ) | [inline] |
Compute c0 - c1, and store in this.
Definition at line 213 of file rgba.h.
Referenced by addColors(), modulateColors(), and subtractColors().
| 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.
| 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.
Referenced by NL3D::CVegetableManager::addInstance(), NL3D::CLodCharacterManager::addRenderCharacterKey(), NL3D::CMeshMultiLod::renderCoarseMesh(), and NL3D::CVegetableManager::updateInstanceLighting().
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] |
some colors
Definition at line 350 of file rgba.h.
Referenced by NL3D::CRenderTrav::beginVPLightSetup(), NL3D::CDriverD3D::CDriverD3D(), NL3D::CDriverGL::CDriverGL(), NL3D::CInstanceLighter::computeSunContribution(), NL3D::CPointLight::CPointLight(), NL3D::CRenderTrav::CRenderTrav(), NL3D::CSkeletonModel::CSkeletonModel(), NL3D::CTextureDLM::CTextureDLM(), NL3D::CLetterColors::getColor(), NL3D::UInstanceMaterial::getConstantColor(), NL3D::CPatch::getCurrentTileTLIColors(), NL3D::CPatch::getCurrentTLIColor(), NLMISC::CBitmap::getDXTC1Texel(), NLMISC::CBitmap::getDXTC3Texel(), NLMISC::CBitmap::getDXTC5Texel(), NL3D::CLetterColors::getLetterColor(), NLMISC::CBitmap::getPixelColor(), NLMISC::CBitmap::getRGBAPixel(), NL3D::CRenderTrav::getStrongestLightColors(), NL3D::CVisualCollisionManager::receiveShadowMap(), NL3D::CLandscape::render(), NL3D::CScene::renderOcclusionTestMeshs(), NL3D::CShadowMapManager::renderProject(), NL3D::CLodCharacterTmpBitmap::reset(), NL3D::CRenderTrav::resetLightSetup(), NL3D::CMaterial::serial(), NL3D::CDriverD3D::setupMaterial(), NL3D::CLightTrav::traverse(), NL3D::CPointLightModel::traverseLight(), and NL3D::CFlareModel::traverseRender().
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] |
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] |
const CRGBA NLMISC::CRGBA::Magenta [static] |
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] |
Definition at line 351 of file rgba.h.
Referenced by NL3D::CPSLocatedBindable::displayIcon2d(), NL3D::CPSZoneRectangle::show(), NL3D::CPSZoneCylinder::show(), NL3D::CPSZoneDisc::show(), NL3D::CPSZoneSphere::show(), NL3D::CPSZonePlane::show(), NL3D::CPSLight::show(), NL3D::CPSCylindricVortex::show(), NL3D::CPSDirectionnalForce::show(), NL3D::CPSSphericalEmitter::showTool(), NL3D::CPSEmitterRectangle::showTool(), and NL3D::CPSEmitter::showTool().
const CRGBA NLMISC::CRGBA::White [static] |
Definition at line 357 of file rgba.h.
Referenced by NL3D::CMaterialDrvInfosD3D::buildTexEnv(), NL3D::CAnimatedLightmap::CAnimatedLightmap(), NL3D::CDriverD3D::CDriverD3D(), NL3D::CDriverGL::CDriverGL(), NL3D::CLandscape::CLandscape(), NL3D::CShadowPolyReceiver::computeClippedTrisWithPolyClip(), NL3D::CFastHLSModifier::convert(), NL3D::CPointLight::CPointLight(), NL3D::CPSColorMemory::CPSColorMemory(), NL3D::CreateDummyMesh(), NL3D::CRenderTrav::CRenderTrav(), NL3D::CShadowMapManager::CShadowMapManager(), NL3D::CDriverD3D::getBlendConstantColor(), NL3D::CScene::getLightmapGroupColor(), NL3D::CPSFanLight::getVBnIB(), NL3D::CPSFanLight::init(), NL3D::CBloomEffect::init(), NL3D::CParticleSystem::isUserColorUsed(), NL3D::CVisualCollisionManager::receiveShadowMap(), NL3D::CLandscape::render(), NL3D::CTileFarBank::CTileFar::serial(), NL3D::CMaterial::serial(), NL3D::CParticleSystem::setColorAttenuationScheme(), NL3D::CDriverGL::setDisplay(), NL3D::CScene::setLightGroupColor(), NL3D::CWaterModel::setupMaterialNVertexShader(), NL3D::CWaterModel::setupSimpleRender(), and NL3D::CParticleSystem::updateColor().
const CRGBA NLMISC::CRGBA::Yellow [static] |
1.6.1