#include <llvosky.h>
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 LLVector3 & | getDir (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) |
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] |
LLColor4 * | 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 118 of file llvosky.h.
LLSkyTex::LLSkyTex | ( | ) | [protected] |
Definition at line 201 of file llvosky.cpp.
LLSkyTex::~LLSkyTex | ( | ) | [protected] |
static F32 LLSkyTex::getInterpVal | ( | ) | [inline, static] |
Definition at line 132 of file llvosky.h.
References sInterpVal.
Referenced by LLDrawPoolSky::renderSkyCubeFace().
static void LLSkyTex::setInterpVal | ( | const F32 | v | ) | [inline, static] |
Definition at line 133 of file llvosky.h.
References sInterpVal.
Referenced by LLVOSky::updateSky().
static BOOL LLSkyTex::doInterpolate | ( | ) | [inline, static] |
Definition at line 134 of file llvosky.h.
References sInterpVal.
Referenced by LLDrawPoolSky::renderSkyCubeFace().
void LLSkyTex::bindTexture | ( | BOOL | curr = TRUE |
) |
Definition at line 295 of file llvosky.cpp.
References getWhich(), and mImageGL.
Referenced by LLDrawPoolSky::renderSkyCubeFace().
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().
void LLSkyTex::cleanupGL | ( | ) | [protected] |
Definition at line 222 of file llvosky.cpp.
References mImageGL, and NULL.
Referenced by LLVOSky::cleanupGL().
void LLSkyTex::restoreGL | ( | ) | [protected] |
Definition at line 228 of file llvosky.cpp.
References FALSE, i, mImageGL, S32, and TRUE.
Referenced by LLVOSky::restoreGL().
static S32 LLSkyTex::getResolution | ( | ) | [inline, static, protected] |
static S32 LLSkyTex::getCurrent | ( | ) | [inline, static, protected] |
static S32 LLSkyTex::stepCurrent | ( | ) | [inline, static, protected] |
Definition at line 149 of file llvosky.h.
References sCurrent.
Referenced by LLVOSky::initSunDirection(), and LLVOSky::updateSky().
static S32 LLSkyTex::getNext | ( | ) | [inline, static, protected] |
Definition at line 150 of file llvosky.h.
References sCurrent.
Referenced by getWhich().
Definition at line 151 of file llvosky.h.
References getNext(), and sCurrent.
Referenced by bindTexture(), and getImageRaw().
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().
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().
Definition at line 157 of file llvosky.h.
References mSkyDirs, S32, and sResolution.
Referenced by LLVOSky::initSkyTextureDirs().
Definition at line 169 of file llvosky.h.
References mSkyData, S32, and sResolution.
Referenced by LLVOSky::createSkyTexture().
Definition at line 175 of file llvosky.h.
References LLColor4U::mAll, mImageRaw, S32, sComponents, sCurrent, and sResolution.
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().
void LLSkyTex::createGLImage | ( | BOOL | curr = TRUE |
) | [protected] |
Referenced by create(), initEmpty(), and LLVOSky::updateSky().
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().
LLPointer<LLImageGL> LLSkyTex::mImageGL[2] [private] |
Definition at line 124 of file llvosky.h.
Referenced by bindTexture(), cleanupGL(), init(), and restoreGL().
LLPointer<LLImageRaw> LLSkyTex::mImageRaw[2] [private] |
Definition at line 125 of file llvosky.h.
Referenced by create(), getImageRaw(), getPixel(), init(), initEmpty(), and setPixel().
LLColor4* LLSkyTex::mSkyData [private] |
Definition at line 126 of file llvosky.h.
Referenced by create(), init(), initEmpty(), setPixel(), and ~LLSkyTex().
LLVector3* LLSkyTex::mSkyDirs [private] |
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().