N64® Functions Menu

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

Nintendo® Confidential

   

spScissor

Format
#include <sp.h>
void spScissor( u32 xmin, u32 xmax, u32 ymin, u32 ymax)


Arguments
  • xmin the horizontal position of the left edge of the scissoring window
  • xmax the horizontal position of the right edge of the scissoring window
  • xmin the vertical position of the top edge of the scissoring window
  • xmax the vertical position of the bottom edge of the scissoring window
What This Function Does
It specifies the bounding region in which sprites are to be drawn. Any part of a sprite outside of this region is not drawn. Tiles entirely outside of this region are not drawn. Tiles partially outside this region are properly clipped so that only the part inside the region is drawn.

By default, the region starts out with xmin=0, xmax=319, ymin=0, ymax=239. Do not set this region to an area larger than the current frame buffer; if you do, the hardware may stop responding (hang).

See Also
spDraw
spScale
spScissor
gDPSetImage



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.

Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998