-
Notifications
You must be signed in to change notification settings - Fork 12
ref_iface_IVDXAContext_DrawRect
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.
Setting up your development environment
Conventions
Plugin initialization
Dynamic loading
Reference counting
Using CPU extensions
Introduction
What's new
Breaking changes
Gotchas
Deprecated features
Migrating from the old Filter SDK
Programming model
Handling bitmaps
Creating a video filter
Setting filter parameters
Processing video frames
Managing filter data
Creating time-varying filters
Handling aspect ratio
Prefetching multiple source frames
Handling multiple sources
Making a filter configurable
Scripting support
CPU dependent optimization
VDXA index omitted
Getting started
Writing the module entry point
Creating a video filter
Adding configurability
Adding script support
Introduction
What's new
Autodetect
Direct mode
Video frames vs. samples
Video decodint model
Video decoder