Beispiel #1
0
const Rect2F& RenderStateSet::GetScissorBoxOrEmpty() const
{
	ScissorRenderState* state = GetState<ScissorRenderState>();
	if (state != nullptr)
	{
		return state->ScissorBox();
	}
	return Rect2F::Zero;
}
Beispiel #2
0
const Rect2F* RenderStateSet::TryGetScissorBox() const
{
	ScissorRenderState* state = GetState<ScissorRenderState>();
	RETURN_NULL_IF_NULL(state);
	return &state->ScissorBox();
}