natiny.render.scissor_end

Lua
natiny.render.scissor_end()

Pops the current scissor rectangle. A nested scissor restores its parent; drawing becomes unrestricted only when the stack becomes empty.

Example

Lua
natiny.render.scissor_begin(40, 40, 220, 120)
natiny.render.scissor_end()

Notes

  • Call this after natiny.render.scissor_begin(...).
  • If no scissor is active, calling this is a no-op.