ref_iface_IVDXAContext_DrawRect - shekh/VirtualDub2 GitHub Wiki
VirtualDub Plugin SDK 1.2
IVDXAContext interface
Draws a filled rectangle on the current render target using a fragment program.
void DrawRect(uint32 renderTargetHandle, uint32 fragmentProgram, const VDXRect *destRect);
renderTargetHandle | Handle of render target on which to draw; must be valid (non-zero). |
fragmentProgram | Handle of fragment program to use for rendering; must be valid (non-zero). |
destRect | Optional rectangle to fill. If omitted, the entire render target is filled. |
This method is not thread-safe.
This is the main method used to render in a 3D accelerated video filter.
The destination rect may be empty or extend beyond the bounds of the render target. In the former case, the draw call is ignored, and in the latter case, the rect is clipped and the texture coordinates adjusted to compensate.
Copyright (C) 2007-2012 Avery Lee.