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)
void setDir (const LLVector3 &dir, const S32 i, const S32 j)
const LLVector3getDir (const S32 i, const S32 j) const
void setPixel (const LLColor4 &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]
LLColor4mSkyData
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 118 of file llvosky.h.


Constructor & Destructor Documentation

LLSkyTex::LLSkyTex (  )  [protected]

Definition at line 201 of file llvosky.cpp.

LLSkyTex::~LLSkyTex (  )  [protected]

Definition at line 237 of file llvosky.cpp.

References mSkyData, mSkyDirs, and NULL.


Member Function Documentation

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

Definition at line 132 of file llvosky.h.

References sInterpVal.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

Here is the caller graph for this function:

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

Definition at line 133 of file llvosky.h.

References sInterpVal.

Referenced by LLVOSky::updateSky().

Here is the caller graph for this function:

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

Definition at line 134 of file llvosky.h.

References sInterpVal.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

Here is the caller graph for this function:

void LLSkyTex::bindTexture ( BOOL  curr = TRUE  ) 

Definition at line 295 of file llvosky.cpp.

References getWhich(), and mImageGL.

Referenced by LLDrawPoolSky::renderSkyCubeFace().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSkyTex::init ( void   )  [protected]

Definition at line 207 of file llvosky.cpp.

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

Referenced by LLVOSky::LLVOSky().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSkyTex::cleanupGL (  )  [protected]

Definition at line 222 of file llvosky.cpp.

References mImageGL, and NULL.

Referenced by LLVOSky::cleanupGL().

Here is the caller graph for this function:

void LLSkyTex::restoreGL (  )  [protected]

Definition at line 228 of file llvosky.cpp.

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

Referenced by LLVOSky::restoreGL().

Here is the caller graph for this function:

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

Definition at line 147 of file llvosky.h.

References sResolution.

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

Definition at line 148 of file llvosky.h.

References sCurrent.

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

Definition at line 149 of file llvosky.h.

References sCurrent.

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

Here is the caller graph for this function:

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

Definition at line 150 of file llvosky.h.

References sCurrent.

Referenced by getWhich().

Here is the caller graph for this function:

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

Definition at line 151 of file llvosky.h.

References getNext(), and sCurrent.

Referenced by bindTexture(), and getImageRaw().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 247 of file llvosky.cpp.

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

Referenced by init().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLSkyTex::create ( F32  brightness  )  [protected]

Brightness ignored for now.

Definition at line 268 of file llvosky.cpp.

References createGLImage(), i, j, LLColor4U::mAll, mImageRaw, mSkyData, S32, sComponents, sCurrent, and sResolution.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 157 of file llvosky.h.

References mSkyDirs, S32, and sResolution.

Referenced by LLVOSky::initSkyTextureDirs().

Here is the caller graph for this function:

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

Definition at line 163 of file llvosky.h.

References mSkyDirs, S32, and sResolution.

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

Definition at line 169 of file llvosky.h.

References mSkyData, S32, and sResolution.

Referenced by LLVOSky::createSkyTexture().

Here is the caller graph for this function:

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

Definition at line 175 of file llvosky.h.

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

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

Definition at line 182 of file llvosky.h.

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

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

Definition at line 191 of file llvosky.h.

References getWhich(), and mImageRaw.

Referenced by LLVOSky::updateSky().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class LLVOSky [friend]

Definition at line 120 of file llvosky.h.


Member Data Documentation

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

Definition at line 122 of file llvosky.h.

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

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

Definition at line 123 of file llvosky.h.

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

Definition at line 124 of file llvosky.h.

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

Definition at line 125 of file llvosky.h.

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

Definition at line 126 of file llvosky.h.

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

Definition at line 127 of file llvosky.h.

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

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

Definition at line 128 of file llvosky.h.

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

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

Definition at line 129 of file llvosky.h.

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


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

Generated on Fri May 16 09:04:48 2008 for SecondLife by  doxygen 1.5.5