| Home
| Previous
| Next
| Up

DrawRect

Draws a solid filled rectangle.

Declaration

void NAPI GA_2DRenderFuncs::DrawRect(
N_int32 left,
N_int32 top,
N_int32 width,
N_int32 height)

Prototype In

snap/graphics.h

Parameters

left | Left coordinate of the rectangle to draw
top | Top coordinate of the rectangle to draw
width | Width of the rectangle in pixels
height | Height of the rectangle in scanlines

Description

This function renders a solid rectangle at the specified location and currently active color and mix. This routine will render a rectangle from (Left, Top) to (Left+Width-1,Height+Bottom-1) inclusive. This function will always be provided by accelerated drivers, and will be implemented with whatever hardware rendering function provides the fastest possible method of rendering rectangles with the installed hardware.

See Also

DrawPattRect, DrawColorPattRect, DrawRectLin, DrawRectExt

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com