al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
gDPSetScissorFormat#include "gbi.h" gDPSetScissor(Gfx *gdl, unsigned int mode, unsigned int ulx, unsigned int uly, unsigned int lrx, unsigned int lry ) gsDPSetScissor(unsigned int mode, unsigned int ulx, unsigned int uly, unsigned int lrx, unsigned int lry )Arguments
It sets the scissor box, which eliminates pixels drawn outside of the box region, in screen coordinates. The RSP graphics microcode performs fixed-point precision clipping that can result in small precision errors, causing primitives to be slightly off of the viewport rectangle. A typical application would set the viewport region slightly larger than the scissor region in order to eliminate these artifacts. Scissoring can also be used to eliminate a majority of the clipping computation all together. You can tell the RSP to clip in a region larger than visible screen, in which case the off screen pixels must be scissored (which is often faster). This macro also eliminates scanlines when rendering in interlaced video mode. In non-interlaced mode, all scanlines are drawn. In interlaced mode, the application can specify whether even or odd scanlines are eliminated. This allows a single framebuffer to be used to store the images for the two fields of an interlaced display mode. Note Scissoring only works for one- and two-cycle types. The scissor box must be larger than or equal to the rectangle region in fill or copy mode. See Also gSPViewport gSPClipRatio gDPFillRectangle gSPTextureRectangle
|