LLScreenClipRect::LLScreenClipRect(const LLRect& rect, BOOL enabled)
:	mScissorState(enabled),
	mEnabled(enabled),
	mRootScissorRect(gGL.getScissor())
{
	if (mEnabled)
	{
		pushClipRect(rect);
	}
}
Пример #2
0
LLScreenClipRect::LLScreenClipRect(const LLRect& rect, BOOL enabled)
:	mScissorState(GL_SCISSOR_TEST),
	mEnabled(enabled)
{
	if (mEnabled)
	{
		pushClipRect(rect);
		mScissorState.setEnabled(!sClipRectStack.empty());
		updateScissorRegion();
	}
}
Пример #3
0
	void pushClipRect(Vector2i pos, Vector2u size)
	{
		pushClipRect(pos.x, pos.y, size.x, size.y);
	}