ref_iface_IVDXAContext_FillRects - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXAContext interface
Fills rectangular regions of a render target with a solid color.
void FillRects(uint32 renderTargetHandle, uint32 rectCount, const VDXRect *rects, uint32 colorARGB);
renderTargetHandle | Handle of render target on which to draw; must be valid (non-zero). |
rectCount | Number of rectangles. |
rects | Pointer to array of rectangles to fill. |
colorARGB | Fill color to use, represented as a 32-bit ARGB color in the form 0xAARRGGBB. This format is independent of the format of the render target. |
This method is not thread-safe.
Empty rectangles are silently discarded and rectangles outside of the render target bounds are clipped.
As a special case, if rects is NULL and rectCount > 0, the entire render target is filled. This avoids the need to manually query the render target dimensions.
Copyright (C) 2007-2012 Avery Lee.