#include <ultra64.h> /* gs2dex.h */ void guS2DEmuSetScissor(u32 ulx, u32 uly, u32 lrx, u32 lry, u8 type);
This function sets the scissoring parameters and texture filter referenced by the guS2DEmuBgRect1Cyc function. Usually, the range of the scissor box set by gDPSetScissor is handled by this function as parameters. For details on scissoring, see gDPSetScissor. See also N64 Programming Manual 184.108.40.206 "Bilinear filtering and PointSample" on texture filter.
This function need only be called once before guS2DEmuBgRect1Cyc is called. As long as there is no change in the scissor box and texture filter, it need only be called once during game initialization. In other words, you don't need to call it every time a frame is drawn.
The initial values for ulx, uly, lrx, lry, and type are 0, 0, 320, 240, and FALSE respectively, which are settings that draw to a 320x240 pixel frame buffer with PointSample.
guS2DEmuBgRect1Cyc, gDPSetScissor, and gDPSetTextureFilter
03/01/99 Completely revised.