LLGLState Class Reference

#include <llgl.h>

Inheritance diagram for LLGLState:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Definition at line 217 of file llgl.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
CURRENT_STATE 

Definition at line 233 of file llgl.h.


Constructor & Destructor Documentation

LLGLState::LLGLState ( LLGLenum  state,
S32  enabled = CURRENT_STATE 
)

Definition at line 1286 of file llgl.cpp.

References llassert, mWasEnabled, setEnabled(), sStateMap, and stop_glerror.

Here is the call graph for this function:

LLGLState::~LLGLState (  ) 

Definition at line 1324 of file llgl.cpp.

References LLGLImmediate::flush(), gDebugGL, gGL, llassert_always, mIsEnabled, mState, mWasEnabled, sStateMap, and stop_glerror.

Here is the call graph for this function:


Member Function Documentation

void LLGLState::initClass (  )  [static]

Definition at line 981 of file llgl.cpp.

References sStateMap.

Referenced by LLGLManager::initGLStates(), and restoreGL().

Here is the caller graph for this function:

void LLGLState::restoreGL (  )  [static]

Definition at line 988 of file llgl.cpp.

References initClass(), and sStateMap.

Referenced by LLViewerWindow::restoreGL().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGLState::resetTextureStates (  )  [static]

Definition at line 996 of file llgl.cpp.

References LLGLImmediate::flush(), gGL, j, and S32.

Here is the call graph for this function:

void LLGLState::dumpStates (  )  [static]

Definition at line 1010 of file llgl.cpp.

References LL_ENDL, LL_INFOS, llformat(), S32, and sStateMap.

Referenced by checkStates().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGLState::checkStates (  )  [static]

void LLGLState::checkTextureChannels (  )  [static]

void LLGLState::checkClientArrays ( U32  data_mask = 0x0001  )  [static]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLGLState::enable (  )  [inline]

Definition at line 237 of file llgl.h.

References setEnabled(), and TRUE.

Here is the call graph for this function:

void LLGLState::disable (  )  [inline]

Definition at line 238 of file llgl.h.

References FALSE, and setEnabled().

Here is the call graph for this function:


Member Data Documentation

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().

Definition at line 240 of file llgl.h.

Referenced by setEnabled(), and ~LLGLState().

Definition at line 241 of file llgl.h.

Referenced by LLGLState(), and ~LLGLState().

Definition at line 242 of file llgl.h.

Referenced by setEnabled(), and ~LLGLState().


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

Generated on Fri May 16 08:48:30 2008 for SecondLife by  doxygen 1.5.5