LLCubeMap Class Reference

#include <llcubemap.h>

Inheritance diagram for LLCubeMap:

Inheritance graph
[legend]
Collaboration diagram for LLCubeMap:

Collaboration graph
[legend]
List of all members.

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< LLImageGLmImages [6]
LLPointer< LLImageRawmRawImages [6]
S32 mTextureStage
S32 mMatrixStage

Detailed Description

Definition at line 43 of file llcubemap.h.


Constructor & Destructor Documentation

LLCubeMap::LLCubeMap (  ) 

Definition at line 58 of file llcubemap.cpp.

LLCubeMap::~LLCubeMap (  )  [protected]

Definition at line 64 of file llcubemap.cpp.


Member Function Documentation

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 (  ) 

Definition at line 441 of file llcubemap.cpp.

References i, mImages, NULL, and S32.

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().

void LLCubeMap::enable ( S32  stage  ) 

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().

LLVector3 LLCubeMap::map ( U8  side,
U16  v_val,
U16  h_val 
) const

Definition at line 263 of file llcubemap.cpp.

References LLVector3::mV, LLVector3::normVec(), and RESOLUTION.

Referenced by paintIn().

void LLCubeMap::paintIn ( LLVector3  dir[4],
const LLColor4U col 
)

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.

Referenced by paintIn(), and project().

void LLCubeMap::restoreMatrix (  ) 

Definition at line 255 of file llcubemap.cpp.

References glPopMatrix, and mMatrixStage.

Referenced by LLDrawPoolBump::endShiny(), and LLRenderShinyGlow::render().

void LLCubeMap::setMatrix ( S32  stage  ) 

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().


Member Data Documentation

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]

Definition at line 76 of file llcubemap.h.

Referenced by restoreMatrix(), and setMatrix().

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]

Definition at line 72 of file llcubemap.h.

Referenced by initGL().

S32 LLCubeMap::mTextureStage [protected]

Definition at line 75 of file llcubemap.h.

Referenced by disable(), and enable().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:13 2010 for Second Life Viewer by  doxygen 1.4.7