#include <llui.h>
Public Member Functions | |
LLScreenClipRect (const LLRect &rect, BOOL enabled=TRUE) | |
virtual | ~LLScreenClipRect () |
Static Private Member Functions | |
static void | pushClipRect (const LLRect &rect) |
static void | popClipRect () |
static void | updateScissorRegion () |
Private Attributes | |
LLGLState | mScissorState |
BOOL | mEnabled |
Static Private Attributes | |
static std::stack< LLRect > | sClipRectStack |
Definition at line 387 of file llui.h.
Definition at line 1757 of file llui.cpp.
References mEnabled, mScissorState, pushClipRect(), sClipRectStack, LLGLState::setEnabled(), and updateScissorRegion().
LLScreenClipRect::~LLScreenClipRect | ( | ) | [virtual] |
Definition at line 1767 of file llui.cpp.
References mEnabled, popClipRect(), and updateScissorRegion().
void LLScreenClipRect::pushClipRect | ( | const LLRect & | rect | ) | [static, private] |
Definition at line 1777 of file llui.cpp.
References LLRectBase< Type >::intersectWith(), and sClipRectStack.
Referenced by LLScreenClipRect().
void LLScreenClipRect::popClipRect | ( | ) | [static, private] |
Definition at line 1789 of file llui.cpp.
References sClipRectStack.
Referenced by ~LLScreenClipRect().
void LLScreenClipRect::updateScissorRegion | ( | ) | [static, private] |
Definition at line 1795 of file llui.cpp.
References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), llceil(), llfloor(), llmax(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLVector2::mV, S32, sClipRectStack, LLUI::sGLScaleFactor, stop_glerror, VX, and VY.
Referenced by LLScreenClipRect(), and ~LLScreenClipRect().
LLGLState LLScreenClipRect::mScissorState [private] |
BOOL LLScreenClipRect::mEnabled [private] |
std::stack< LLRect > LLScreenClipRect::sClipRectStack [static, private] |
Definition at line 402 of file llui.h.
Referenced by LLScreenClipRect(), popClipRect(), pushClipRect(), and updateScissorRegion().