// TODO: Support transformed bounds using stencil void UIContext::PushScissor(const Bounds &bounds) { Flush(); Bounds clipped = bounds; if (scissorStack_.size()) clipped.Clip(scissorStack_.back()); scissorStack_.push_back(clipped); ActivateTopScissor(); }
void UIContext::PopScissor() { Flush(); scissorStack_.pop_back(); ActivateTopScissor(); }
// TODO: Support transformed bounds using stencil void UIContext::PushScissor(const Bounds &bounds) { Flush(); scissorStack_.push_back(bounds); ActivateTopScissor(); }