gDPScisFillRectangle [Macro]

Function

gDPScisFillRectangle

Renders a solid-color scissored rectangle in the screen coordinates

Syntax

#include <ultra64.h>        /* gbi.h */
gDPScisFillRectangle(Gfx *gdl, s32 ulx, s32 uly, s32 lrx, s32 lry) 

Arguments

gdl
Display list pointer.
ulx
Left edge coordinates of rectangle (10-bit precision, -231~1023)
uly
Top edge coordinates of rectangle (10-bit precision, -231~1023)
lrx
Right edge coordinates of rectangle (10-bit precision, -231~1023)
lry
Bottom edge coordinates of rectangle (10-bit precision, -231~1023)

Description

Renders a scissored 2D rectangle using the fill color set in the RDP's blender (BL). Unlike gDPFillRectangle, this command can take negative values. However, any negative value that is input is corrected to 0.

Note

This macro can only be used dynamically. There is no static version (i.e., there is no gsDPScisFillRectangle).

See Also

gDPFillRectangle, gDPSetCycleType, gDPSetFillColor, and gSPTextureRectangle

Revision History

02/01/99   Completely rewritten