December 21, 2024

Dynamic Windows Function [dw_draw_polygon]

Syntax

void dw_draw_polygon(HWND handle, HPIXMAP pixmap, int flags, int npoints, int *x, int *y)

Parameters

HWND handle: Handle to the window.
HPIXMAP pixmap: Handle to the pixmap. (choose only one of these)
int flags: DW_DRAW_FILL (1) to fill the polygon or DW_DRAW_DEFAULT (0).
int npoints: Number of points passed in.
int *x: Pointer to array of X coordinates.
int *y: Pointer to array of Y coordinates.

Description

Draw a polygon on a window (preferably a render window).

Remarks

As of version 2.3 you can OR the flags with DW_DRAW_NOAA to disable antialiased drawing to the surface.