Skip to content

ref_iface_IVDXAContext_DrawRect

shekh edited this page Apr 15, 2018 · 1 revision

VirtualDub Plugin SDK 1.2

IVDXAContext interface

IVDXAContext:: DrawRect

Draws a filled rectangle on the current render target using a fragment program.

void DrawRect(uint32 renderTargetHandle, uint32 fragmentProgram, const VDXRect *destRect);

Parameters

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.

Thread safety

This method is not thread-safe.

Remarks

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.

Clone this wiki locally