#include <llcubemap.h>
Inheritance diagram for LLCubeMap:
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 | disable () |
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 | 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 64 of file llcubemap.cpp.
void LLCubeMap::bind | ( | ) |
Definition at line 180 of file llcubemap.cpp.
References gGLManager, glEnable, llendl, llwarns, LLGLManager::mHasCubeMap, mImages, and use_cube_mipmaps.
Referenced by LLDrawPoolBump::beginShiny(), LLPipeline::blurReflectionMap(), LLPipeline::generateReflectionMap(), LLRenderShinyGlow::render(), LLDrawPoolBump::renderGroup(), and LLDrawPoolWater::shade().
void LLCubeMap::destroyGL | ( | ) |
void LLCubeMap::disable | ( | ) |
Definition at line 220 of file llcubemap.cpp.
References gGLManager, glDisable, LLGLManager::mHasCubeMap, and mTextureStage.
Referenced by LLDrawPoolBump::endShiny(), LLPipeline::generateReflectionMap(), initGL(), and LLRenderShinyGlow::render().
Definition at line 199 of file llcubemap.cpp.
References gGLManager, glEnable, LLGLManager::mHasCubeMap, and mTextureStage.
Referenced by LLDrawPoolBump::beginShiny(), and LLRenderShinyGlow::render().
void LLCubeMap::finishPaint | ( | ) |
GLuint LLCubeMap::getGLName | ( | ) |
Definition at line 175 of file llcubemap.cpp.
References mImages.
Referenced by LLPipeline::generateReflectionMap().
void LLCubeMap::init | ( | const std::vector< LLPointer< LLImageRaw > > & | rawimages | ) |
Definition at line 165 of file llcubemap.cpp.
References gGLManager, initGL(), initGLData(), initRawData(), and LLGLManager::mIsDisabled.
Referenced by LLVOSky::restoreGL().
void LLCubeMap::initGL | ( | ) |
Definition at line 68 of file llcubemap.cpp.
References disable(), FALSE, gFeatureManagerp, 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::initGLData | ( | ) |
Definition at line 157 of file llcubemap.cpp.
References i, mImages, and mRawImages.
Referenced by init().
void LLCubeMap::initRawData | ( | const std::vector< LLPointer< LLImageRaw > > & | rawimages | ) |
Definition at line 111 of file llcubemap.cpp.
References i, mRawImages, S32, tut::sd(), x, and y.
Referenced by init().
Definition at line 263 of file llcubemap.cpp.
References LLVector3::mV, LLVector3::normVec(), and RESOLUTION.
Referenced by paintIn().
Definition at line 406 of file llcubemap.cpp.
References map(), mImages, mRawImages, LLColor4U::mV, LLVector3::normVec(), project(), RESOLUTION, and v.
BOOL LLCubeMap::project | ( | F32 & | v_min, | |
F32 & | v_max, | |||
F32 & | h_min, | |||
F32 & | h_max, | |||
U8 | side, | |||
LLVector3 | dir[4] | |||
) | const |
Definition at line 374 of file llcubemap.cpp.
References epsilon, f, FALSE, llmax(), llmin(), project(), RESOLUTION, and TRUE.
BOOL LLCubeMap::project | ( | F32 & | v_val, | |
F32 & | h_val, | |||
BOOL & | outside, | |||
U8 | side, | |||
const LLVector3 & | dir | |||
) | const |
Definition at line 310 of file llcubemap.cpp.
References e, epsilon, f, FALSE, LLVector3::mV, RESOLUTION, and TRUE.
void LLCubeMap::restoreMatrix | ( | ) |
Definition at line 255 of file llcubemap.cpp.
References glPopMatrix, and mMatrixStage.
Referenced by LLDrawPoolBump::endShiny(), and LLRenderShinyGlow::render().
Definition at line 235 of file llcubemap.cpp.
References gGLModelView, glLoadMatrixf, LLMatrix4::mMatrix, mMatrixStage, LLMatrix3::setRows(), LLMatrix4::transpose(), x, y, and z.
Referenced by LLDrawPoolBump::beginShiny(), and LLRenderShinyGlow::render().
LLPointer<LLImageGL> LLCubeMap::mImages[6] [protected] |
Definition at line 73 of file llcubemap.h.
Referenced by bind(), destroyGL(), getGLName(), initGL(), initGLData(), and paintIn().
S32 LLCubeMap::mMatrixStage [protected] |
LLPointer<LLImageRaw> LLCubeMap::mRawImages[6] [protected] |
Definition at line 74 of file llcubemap.h.
Referenced by initGL(), initGLData(), initRawData(), and paintIn().
LLGLenum LLCubeMap::mTargets[6] [protected] |
S32 LLCubeMap::mTextureStage [protected] |