#include <llgl.h>
Public Types | |
enum | { CURRENT_STATE = -2 } |
Public Member Functions | |
LLGLState (LLGLenum state, S32 enabled=CURRENT_STATE) | |
~LLGLState () | |
void | setEnabled (S32 enabled) |
void | enable () |
void | disable () |
Static Public Member Functions | |
static void | initClass () |
static void | restoreGL () |
static void | resetTextureStates () |
static void | dumpStates () |
static void | checkStates () |
static void | checkTextureChannels () |
static void | checkClientArrays (U32 data_mask=0x0001) |
Protected Attributes | |
LLGLenum | mState |
BOOL | mWasEnabled |
BOOL | mIsEnabled |
Static Protected Attributes | |
static std::map< LLGLenum, LLGLboolean > | sStateMap |
Definition at line 217 of file llgl.h.
Definition at line 1286 of file llgl.cpp.
References llassert, mWasEnabled, setEnabled(), sStateMap, and stop_glerror.
LLGLState::~LLGLState | ( | ) |
Definition at line 1324 of file llgl.cpp.
References LLGLImmediate::flush(), gDebugGL, gGL, llassert_always, mIsEnabled, mState, mWasEnabled, sStateMap, and stop_glerror.
void LLGLState::initClass | ( | ) | [static] |
Definition at line 981 of file llgl.cpp.
References sStateMap.
Referenced by LLGLManager::initGLStates(), and restoreGL().
void LLGLState::restoreGL | ( | ) | [static] |
Definition at line 988 of file llgl.cpp.
References initClass(), and sStateMap.
Referenced by LLViewerWindow::restoreGL().
void LLGLState::resetTextureStates | ( | ) | [static] |
void LLGLState::dumpStates | ( | ) | [static] |
Definition at line 1010 of file llgl.cpp.
References LL_ENDL, LL_INFOS, llformat(), S32, and sStateMap.
Referenced by checkStates().
void LLGLState::checkStates | ( | ) | [static] |
Definition at line 1020 of file llgl.cpp.
References dumpStates(), gDebugGL, LL_ENDL, LL_GL_ERRS, llformat(), sStateMap, and stop_glerror.
Referenced by LLPipeline::blurReflectionMap(), LLViewerWindow::checkSettings(), display(), display_startup(), LLPipeline::generateReflectionMap(), LLPipeline::generateWaterReflection(), render_ui_and_swap(), LLPipeline::renderBloom(), LLPipeline::renderForSelect(), and LLPipeline::renderGeom().
void LLGLState::checkTextureChannels | ( | ) | [static] |
Definition at line 1063 of file llgl.cpp.
References FALSE, gDebugGL, i, j, LL_ENDL, LL_GL_ERRS, LL_WARNS, LLMatrix4::mMatrix, S32, and TRUE.
Referenced by LLPipeline::blurReflectionMap(), LLViewerWindow::checkSettings(), display(), display_startup(), LLPipeline::generateReflectionMap(), LLPipeline::generateWaterReflection(), LLPipeline::renderBloom(), LLPipeline::renderForSelect(), and LLPipeline::renderGeom().
void LLGLState::checkClientArrays | ( | U32 | data_mask = 0x0001 |
) | [static] |
Definition at line 1168 of file llgl.cpp.
References FALSE, gDebugGL, j, LL_ENDL, LL_GL_ERRS, LL_WARNS, llendl, llwarns, S32, stop_glerror, and TRUE.
Referenced by LLPipeline::blurReflectionMap(), LLPipeline::generateReflectionMap(), LLPipeline::generateWaterReflection(), LLPipeline::renderForSelect(), LLFace::renderForSelect(), LLPipeline::renderGeom(), and LLFace::renderSelected().
void LLGLState::setEnabled | ( | S32 | enabled | ) |
Definition at line 1299 of file llgl.cpp.
References CURRENT_STATE, FALSE, LLGLImmediate::flush(), gGL, mIsEnabled, mState, sStateMap, and TRUE.
Referenced by disable(), enable(), LLGLState(), and LLScreenClipRect::LLScreenClipRect().
void LLGLState::enable | ( | ) | [inline] |
Definition at line 237 of file llgl.h.
References setEnabled(), and TRUE.
void LLGLState::disable | ( | ) | [inline] |
Definition at line 238 of file llgl.h.
References FALSE, and setEnabled().
std::map< LLGLenum, LLGLboolean > LLGLState::sStateMap [static, protected] |
Definition at line 230 of file llgl.h.
Referenced by checkStates(), dumpStates(), initClass(), LLGLState(), restoreGL(), setEnabled(), and ~LLGLState().
LLGLenum LLGLState::mState [protected] |
BOOL LLGLState::mWasEnabled [protected] |
BOOL LLGLState::mIsEnabled [protected] |