#include <llvosky.h>
Collaboration diagram for LLSkyTex:
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 LLVector3 & | getDir (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) |
LLImageRaw * | getImageRaw (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< LLImageGL > | mImageGL [2] |
LLPointer< LLImageRaw > | mImageRaw [2] |
LLColor3 * | mSkyData |
LLVector3 * | mSkyDirs |
Static Private Attributes | |
static S32 | sResolution = 64 |
static S32 | sComponents = 4 |
static S32 | sCurrent = 0 |
static F32 | sInterpVal = 0.f |
Friends | |
class | LLVOSky |
Definition at line 124 of file llvosky.h.
LLSkyTex::LLSkyTex | ( | ) | [protected] |
Definition at line 386 of file llvosky.cpp.
LLSkyTex::~LLSkyTex | ( | ) | [protected] |
Definition at line 484 of file llvosky.cpp.
References getWhich(), and mImageGL.
Referenced by LLDrawPoolSky::renderSkyCubeFace().
void LLSkyTex::cleanupGL | ( | ) | [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.
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] |
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 187 of file llvosky.h.
References LLColor4U::mAll, mImageRaw, S32, sComponents, sCurrent, and sResolution.
static S32 LLSkyTex::getResolution | ( | ) | [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.
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 162 of file llvosky.h.
References mSkyDirs, S32, and sResolution.
Referenced by LLVOSky::initSkyTextureDirs().
Definition at line 139 of file llvosky.h.
References sInterpVal.
Referenced by LLVOSky::updateSky().
Definition at line 180 of file llvosky.h.
References LLColor4U::mAll, mImageRaw, S32, sComponents, sCurrent, 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().
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] |
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().