DirectX SDK |
This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.
The VideoTex sample shows how to use an .avi file as a texture map.
Source: (SDK root)\Samples\Multimedia\D3dim\Src\VideoTex
Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Videotex.exe
Press F1 to see a list of the usual commands, or choose from the menu.
The sample draws a cube with an .avi texture mapped to each of its faces. The texture's surface must use the DDSCAPS2_HINTDYNAMIC flag.