MGL_getPenPixmapPattern

Returns the currently active pixmap pattern index, and pattern data.

Declaration

int MGLAPI MGL_getPenPixmapPattern(
int index,
pixpattern_t *pat)

Prototype In

mgraph.h

Parameters

index | Index of the bitmap pattern slot to read from
pat | Place to store the pixmap pattern

Return Value

Currently active bitmap pattern index.

Description

This function returns a copy of the specified pixmap pattern used when rendering patterned primitives in the MGL_PIXMAP pen style. It also returns the currently active pixmap pattern index, since the MGL supports 8 patterns cached internally in the driver.

Note: You can pass a value of NULL in the pat parameter, and the pattern data will not be copied. Ie: MGL_getPenPixmapPattern(0,NULL) returns just the currently active pixmap pattern index.

See Also

MGL_setPenPixmapPattern, MGL_usePenPixmapPattern, MGL_setPenBitmapPattern, MGL_setPenStyle

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