LLSkyTex Class Reference

#include <llvosky.h>

Collaboration diagram for LLSkyTex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void bindTexture (BOOL curr=TRUE)

Static Public Member Functions

static F32 getInterpVal ()
static void setInterpVal (const F32 v)
static BOOL doInterpolate ()

Protected Member Functions

 LLSkyTex ()
void init ()
void cleanupGL ()
void restoreGL ()
 ~LLSkyTex ()
void initEmpty (const S32 tex)
void create (F32 brightness_scale, const LLColor3 &multiscatt)
void setDir (const LLVector3 &dir, const S32 i, const S32 j)
const LLVector3getDir (const S32 i, const S32 j) const
void setPixel (const LLColor3 &col, const S32 i, const S32 j)
void setPixel (const LLColor4U &col, const S32 i, const S32 j)
LLColor4U getPixel (const S32 i, const S32 j)
LLImageRawgetImageRaw (BOOL curr=TRUE)
void createGLImage (BOOL curr=TRUE)

Static Protected Member Functions

static S32 getResolution ()
static S32 getCurrent ()
static S32 stepCurrent ()
static S32 getNext ()
static S32 getWhich (const BOOL curr)

Private Attributes

LLPointer< LLImageGLmImageGL [2]
LLPointer< LLImageRawmImageRaw [2]
LLColor3mSkyData
LLVector3mSkyDirs

Static Private Attributes

static S32 sResolution = 64
static S32 sComponents = 4
static S32 sCurrent = 0
static F32 sInterpVal = 0.f

Friends

class LLVOSky

Detailed Description

Definition at line 124 of file llvosky.h.


Constructor & Destructor Documentation

LLSkyTex::LLSkyTex (  )  [protected]

Definition at line 386 of file llvosky.cpp.

LLSkyTex::~LLSkyTex (  )  [protected]

Definition at line 420 of file llvosky.cpp.

References mSkyData, mSkyDirs, and NULL.


Member Function Documentation

void LLSkyTex::bindTexture ( BOOL  curr = TRUE  ) 

Definition at line 484 of file llvosky.cpp.

References getWhich(), and mImageGL.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

void LLSkyTex::cleanupGL (  )  [protected]

Definition at line 405 of file llvosky.cpp.

References mImageGL, and NULL.

void LLSkyTex::create ( F32  brightness_scale,
const LLColor3 multiscatt 
) [protected]

Definition at line 452 of file llvosky.cpp.

References LLColor3::clamp(), color_gamma_correct(), createGLImage(), f, getDir(), i, j, LLColor4U::mAll, mImageRaw, mSkyData, S32, sComponents, sCurrent, sResolution, and VZ.

void LLSkyTex::createGLImage ( BOOL  curr = TRUE  )  [protected]

Referenced by create(), initEmpty(), and LLVOSky::updateSky().

static BOOL LLSkyTex::doInterpolate (  )  [inline, static]

Definition at line 140 of file llvosky.h.

References sInterpVal.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

static S32 LLSkyTex::getCurrent (  )  [inline, static, protected]

Definition at line 154 of file llvosky.h.

References sCurrent.

const LLVector3& LLSkyTex::getDir ( const S32  i,
const S32  j 
) const [inline, protected]

Definition at line 168 of file llvosky.h.

References mSkyDirs, S32, and sResolution.

Referenced by create().

LLImageRaw* LLSkyTex::getImageRaw ( BOOL  curr = TRUE  )  [inline, protected]

Definition at line 196 of file llvosky.h.

References getWhich(), and mImageRaw.

Referenced by LLVOSky::initCubeMap(), LLVOSky::restoreGL(), and LLVOSky::updateSky().

static F32 LLSkyTex::getInterpVal (  )  [inline, static]

Definition at line 138 of file llvosky.h.

References sInterpVal.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

static S32 LLSkyTex::getNext (  )  [inline, static, protected]

Definition at line 156 of file llvosky.h.

References sCurrent.

Referenced by getWhich().

LLColor4U LLSkyTex::getPixel ( const S32  i,
const S32  j 
) [inline, protected]

Definition at line 187 of file llvosky.h.

References LLColor4U::mAll, mImageRaw, S32, sComponents, sCurrent, and sResolution.

static S32 LLSkyTex::getResolution (  )  [inline, static, protected]

Definition at line 153 of file llvosky.h.

References sResolution.

static S32 LLSkyTex::getWhich ( const BOOL  curr  )  [inline, static, protected]

Definition at line 157 of file llvosky.h.

References getNext(), and sCurrent.

Referenced by bindTexture(), and getImageRaw().

void LLSkyTex::init (  )  [protected]

Definition at line 390 of file llvosky.cpp.

References FALSE, i, initEmpty(), mImageGL, mImageRaw, mSkyData, mSkyDirs, S32, sComponents, sResolution, and TRUE.

void LLSkyTex::initEmpty ( const S32  tex  )  [protected]

Definition at line 430 of file llvosky.cpp.

References createGLImage(), i, j, mImageRaw, mSkyData, S32, sComponents, LLColor3::setToBlack(), and sResolution.

Referenced by init().

void LLSkyTex::restoreGL (  )  [protected]

Definition at line 411 of file llvosky.cpp.

References FALSE, i, mImageGL, S32, and TRUE.

void LLSkyTex::setDir ( const LLVector3 dir,
const S32  i,
const S32  j 
) [inline, protected]

Definition at line 162 of file llvosky.h.

References mSkyDirs, S32, and sResolution.

Referenced by LLVOSky::initSkyTextureDirs().

static void LLSkyTex::setInterpVal ( const F32  v  )  [inline, static]

Definition at line 139 of file llvosky.h.

References sInterpVal.

Referenced by LLVOSky::updateSky().

void LLSkyTex::setPixel ( const LLColor4U col,
const S32  i,
const S32  j 
) [inline, protected]

Definition at line 180 of file llvosky.h.

References LLColor4U::mAll, mImageRaw, S32, sComponents, sCurrent, and sResolution.

void LLSkyTex::setPixel ( const LLColor3 col,
const S32  i,
const S32  j 
) [inline, protected]

Definition at line 174 of file llvosky.h.

References mSkyData, S32, and sResolution.

static S32 LLSkyTex::stepCurrent (  )  [inline, static, protected]

Definition at line 155 of file llvosky.h.

References sCurrent.

Referenced by LLVOSky::initSunDirection(), and LLVOSky::updateSky().


Friends And Related Function Documentation

friend class LLVOSky [friend]

Definition at line 126 of file llvosky.h.


Member Data Documentation

LLPointer<LLImageGL> LLSkyTex::mImageGL[2] [private]

Definition at line 130 of file llvosky.h.

Referenced by bindTexture(), cleanupGL(), init(), and restoreGL().

LLPointer<LLImageRaw> LLSkyTex::mImageRaw[2] [private]

Definition at line 131 of file llvosky.h.

Referenced by create(), getImageRaw(), getPixel(), init(), initEmpty(), and setPixel().

LLColor3* LLSkyTex::mSkyData [private]

Definition at line 132 of file llvosky.h.

Referenced by create(), init(), initEmpty(), setPixel(), and ~LLSkyTex().

LLVector3* LLSkyTex::mSkyDirs [private]

Definition at line 133 of file llvosky.h.

Referenced by getDir(), init(), setDir(), and ~LLSkyTex().

S32 LLSkyTex::sComponents = 4 [static, private]

Definition at line 129 of file llvosky.h.

Referenced by create(), getPixel(), init(), initEmpty(), and setPixel().

S32 LLSkyTex::sCurrent = 0 [static, private]

Definition at line 134 of file llvosky.h.

Referenced by create(), getCurrent(), getNext(), getPixel(), getWhich(), setPixel(), and stepCurrent().

F32 LLSkyTex::sInterpVal = 0.f [static, private]

Definition at line 135 of file llvosky.h.

Referenced by doInterpolate(), getInterpVal(), and setInterpVal().

S32 LLSkyTex::sResolution = 64 [static, private]

Definition at line 128 of file llvosky.h.

Referenced by create(), getDir(), getPixel(), getResolution(), init(), initEmpty(), setDir(), and setPixel().


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