Exposes the SCISSOR register functionality to the gsKit end user. Looks like gsKit initialization was already using the SCISSOR register, but setting it to the full display bounds. This PR allows for setting a custom scissor box, and resetting it to the full display with GS_SCISSOR_RESET.
I also added a custom scissor box call to the basic sample program. Before and after screenshots are attached -- the red triangle has its drawing clipped due to the scissor box.
(This scissor box functionality will be super useful to the PS2 ImGui backend I'm implementing! 😊)
Exposes the SCISSOR register functionality to the gsKit end user. Looks like gsKit initialization was already using the SCISSOR register, but setting it to the full display bounds. This PR allows for setting a custom scissor box, and resetting it to the full display with
GS_SCISSOR_RESET
.I also added a custom scissor box call to the
basic
sample program. Before and after screenshots are attached -- the red triangle has its drawing clipped due to the scissor box.(This scissor box functionality will be super useful to the PS2 ImGui backend I'm implementing! 😊)