#include <llcubemap.h>
Public Member Functions | |
LLCubeMap () | |
void | init (const std::vector< LLPointer< LLImageRaw > > &rawimages) |
void | initGL () |
void | initRawData (const std::vector< LLPointer< LLImageRaw > > &rawimages) |
void | initGLData () |
void | bind () |
void | enable (S32 stage) |
void | enableTexture (S32 stage) |
void | enableTextureCoords (S32 stage) |
void | disable (void) |
void | disableTexture (void) |
void | disableTextureCoords (void) |
void | setMatrix (S32 stage) |
void | restoreMatrix () |
void | finishPaint () |
GLuint | getGLName () |
LLVector3 | map (U8 side, U16 v_val, U16 h_val) const |
BOOL | project (F32 &v_val, F32 &h_val, BOOL &outside, U8 side, const LLVector3 &dir) const |
BOOL | project (F32 &v_min, F32 &v_max, F32 &h_min, F32 &h_max, U8 side, LLVector3 dir[4]) const |
void | paintIn (LLVector3 dir[4], const LLColor4U &col) |
void | destroyGL () |
Protected Member Functions | |
~LLCubeMap () | |
Protected Attributes | |
LLGLenum | mTargets [6] |
LLPointer< LLImageGL > | mImages [6] |
LLPointer< LLImageRaw > | mRawImages [6] |
S32 | mTextureStage |
S32 | mTextureCoordStage |
S32 | mMatrixStage |
Definition at line 43 of file llcubemap.h.
LLCubeMap::LLCubeMap | ( | ) |
Definition at line 58 of file llcubemap.cpp.
LLCubeMap::~LLCubeMap | ( | ) | [protected] |
Definition at line 65 of file llcubemap.cpp.
void LLCubeMap::init | ( | const std::vector< LLPointer< LLImageRaw > > & | rawimages | ) |
Definition at line 166 of file llcubemap.cpp.
References gGLManager, initGL(), initGLData(), initRawData(), and LLGLManager::mIsDisabled.
Referenced by LLVOSky::restoreGL().
void LLCubeMap::initGL | ( | ) |
Definition at line 69 of file llcubemap.cpp.
References disable(), FALSE, LLSingleton< LLFeatureManager >::getInstance(), gGLManager, i, LLFeatureList::isFeatureAvailable(), llassert, llendl, llwarns, LLGLManager::mHasCubeMap, mImages, LLGLManager::mInited, mRawImages, mTargets, stop_glerror, TRUE, and use_cube_mipmaps.
Referenced by init().
void LLCubeMap::initRawData | ( | const std::vector< LLPointer< LLImageRaw > > & | rawimages | ) |
Definition at line 112 of file llcubemap.cpp.
References i, mRawImages, S32, and tut::sd().
Referenced by init().
void LLCubeMap::initGLData | ( | ) |
Definition at line 158 of file llcubemap.cpp.
References i, mImages, and mRawImages.
Referenced by init().
void LLCubeMap::bind | ( | ) |
Definition at line 181 of file llcubemap.cpp.
References gGLManager, llendl, llwarns, LLGLManager::mHasCubeMap, mImages, mTextureStage, and use_cube_mipmaps.
Referenced by LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), LLPipeline::blurReflectionMap(), LLPipeline::generateReflectionMap(), and LLDrawPoolBump::pushBatch().
void LLCubeMap::enable | ( | S32 | stage | ) |
Definition at line 208 of file llcubemap.cpp.
References enableTexture(), and enableTextureCoords().
Referenced by LLDrawPoolBump::beginShiny().
void LLCubeMap::enableTexture | ( | S32 | stage | ) |
Definition at line 214 of file llcubemap.cpp.
References gGLManager, LLGLManager::mHasCubeMap, and mTextureStage.
Referenced by LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), LLPipeline::blurReflectionMap(), enable(), and LLDrawPoolBump::pushBatch().
void LLCubeMap::enableTextureCoords | ( | S32 | stage | ) |
Definition at line 236 of file llcubemap.cpp.
References gGLManager, LLGLManager::mHasCubeMap, and mTextureCoordStage.
Referenced by LLDrawPoolBump::beginFullbrightShiny(), LLDrawPoolBump::beginShiny(), and enable().
void LLCubeMap::disable | ( | void | ) |
Definition at line 261 of file llcubemap.cpp.
References disableTexture(), and disableTextureCoords().
Referenced by LLDrawPoolBump::endFullbrightShiny(), LLDrawPoolBump::endShiny(), LLPipeline::generateReflectionMap(), and initGL().
void LLCubeMap::disableTexture | ( | void | ) |
Definition at line 267 of file llcubemap.cpp.
References gGLManager, LLGLManager::mHasCubeMap, and mTextureStage.
Referenced by LLPipeline::blurReflectionMap(), and disable().
void LLCubeMap::disableTextureCoords | ( | void | ) |
Definition at line 286 of file llcubemap.cpp.
References gGLManager, LLGLManager::mHasCubeMap, and mTextureCoordStage.
Referenced by disable().
void LLCubeMap::setMatrix | ( | S32 | stage | ) |
Definition at line 304 of file llcubemap.cpp.
References gGLModelView, LLMatrix4::mMatrix, mMatrixStage, LLMatrix3::setRows(), and LLMatrix4::transpose().
Referenced by LLDrawPoolBump::beginFullbrightShiny(), and LLDrawPoolBump::beginShiny().
void LLCubeMap::restoreMatrix | ( | ) |
Definition at line 333 of file llcubemap.cpp.
References mMatrixStage.
Referenced by LLDrawPoolBump::endFullbrightShiny(), and LLDrawPoolBump::endShiny().
void LLCubeMap::finishPaint | ( | ) |
GLuint LLCubeMap::getGLName | ( | ) |
Definition at line 176 of file llcubemap.cpp.
References mImages.
Referenced by LLPipeline::blurReflectionMap(), and LLPipeline::generateReflectionMap().
Definition at line 349 of file llcubemap.cpp.
References LLVector3::mV, LLVector3::normVec(), and RESOLUTION.
Referenced by paintIn().
BOOL LLCubeMap::project | ( | F32 & | v_val, | |
F32 & | h_val, | |||
BOOL & | outside, | |||
U8 | side, | |||
const LLVector3 & | dir | |||
) | const |
Definition at line 396 of file llcubemap.cpp.
References epsilon, FALSE, LLVector3::mV, RESOLUTION, and TRUE.
Referenced by paintIn(), and project().
BOOL LLCubeMap::project | ( | F32 & | v_min, | |
F32 & | v_max, | |||
F32 & | h_min, | |||
F32 & | h_max, | |||
U8 | side, | |||
LLVector3 | dir[4] | |||
) | const |
Definition at line 460 of file llcubemap.cpp.
References epsilon, FALSE, llmax(), llmin(), project(), RESOLUTION, and TRUE.
Definition at line 492 of file llcubemap.cpp.
References map(), mImages, mRawImages, LLColor4U::mV, LLVector3::normVec(), project(), and RESOLUTION.
void LLCubeMap::destroyGL | ( | ) |
Definition at line 527 of file llcubemap.cpp.
References i, mImages, NULL, and S32.
Referenced by LLVOSky::cleanupGL().
LLGLenum LLCubeMap::mTargets[6] [protected] |
LLPointer<LLImageGL> LLCubeMap::mImages[6] [protected] |
Definition at line 79 of file llcubemap.h.
Referenced by bind(), destroyGL(), getGLName(), initGL(), initGLData(), and paintIn().
LLPointer<LLImageRaw> LLCubeMap::mRawImages[6] [protected] |
Definition at line 80 of file llcubemap.h.
Referenced by initGL(), initGLData(), initRawData(), and paintIn().
S32 LLCubeMap::mTextureStage [protected] |
Definition at line 81 of file llcubemap.h.
Referenced by bind(), disableTexture(), and enableTexture().
S32 LLCubeMap::mTextureCoordStage [protected] |
Definition at line 82 of file llcubemap.h.
Referenced by disableTextureCoords(), and enableTextureCoords().
S32 LLCubeMap::mMatrixStage [protected] |