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 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< LLImageGLmImages [6]
LLPointer< LLImageRawmRawImages [6]
S32 mTextureStage
S32 mTextureCoordStage
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 65 of file llcubemap.cpp.


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCubeMap::initGLData (  ) 

Definition at line 158 of file llcubemap.cpp.

References i, mImages, and mRawImages.

Referenced by init().

Here is the caller graph for this function:

void LLCubeMap::bind (  ) 

void LLCubeMap::enable ( S32  stage  ) 

Definition at line 208 of file llcubemap.cpp.

References enableTexture(), and enableTextureCoords().

Referenced by LLDrawPoolBump::beginShiny().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCubeMap::enableTexture ( S32  stage  ) 

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCubeMap::disableTexture ( void   ) 

Definition at line 267 of file llcubemap.cpp.

References gGLManager, LLGLManager::mHasCubeMap, and mTextureStage.

Referenced by LLPipeline::blurReflectionMap(), and disable().

Here is the caller graph for this function:

void LLCubeMap::disableTextureCoords ( void   ) 

Definition at line 286 of file llcubemap.cpp.

References gGLManager, LLGLManager::mHasCubeMap, and mTextureCoordStage.

Referenced by disable().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLCubeMap::restoreMatrix (  ) 

Definition at line 333 of file llcubemap.cpp.

References mMatrixStage.

Referenced by LLDrawPoolBump::endFullbrightShiny(), and LLDrawPoolBump::endShiny().

Here is the caller graph for this function:

void LLCubeMap::finishPaint (  ) 

GLuint LLCubeMap::getGLName (  ) 

Definition at line 176 of file llcubemap.cpp.

References mImages.

Referenced by LLPipeline::blurReflectionMap(), and LLPipeline::generateReflectionMap().

Here is the caller graph for this function:

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

Definition at line 349 of file llcubemap.cpp.

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

Referenced by paintIn().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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

Definition at line 492 of file llcubemap.cpp.

References map(), mImages, mRawImages, LLColor4U::mV, LLVector3::normVec(), project(), and RESOLUTION.

Here is the call graph for this function:

void LLCubeMap::destroyGL (  ) 

Definition at line 527 of file llcubemap.cpp.

References i, mImages, NULL, and S32.

Referenced by LLVOSky::cleanupGL().

Here is the caller graph for this function:


Member Data Documentation

LLGLenum LLCubeMap::mTargets[6] [protected]

Definition at line 78 of file llcubemap.h.

Referenced by initGL().

Definition at line 79 of file llcubemap.h.

Referenced by bind(), destroyGL(), getGLName(), initGL(), initGLData(), and paintIn().

Definition at line 80 of file llcubemap.h.

Referenced by initGL(), initGLData(), initRawData(), and paintIn().

Definition at line 81 of file llcubemap.h.

Referenced by bind(), disableTexture(), and enableTexture().

Definition at line 82 of file llcubemap.h.

Referenced by disableTextureCoords(), and enableTextureCoords().

Definition at line 83 of file llcubemap.h.

Referenced by restoreMatrix(), and setMatrix().


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

Generated on Fri May 16 08:43:26 2008 for SecondLife by  doxygen 1.5.5