Platform SDK: DirectX

VideoTex Sample

[Visual Basic]

This topic pertains only to application development in C++. See Direct3D Immediate Mode Visual Basic Samples.

[C++]

Description

The VideoTex sample shows how to use an .avi file as a texture map.

Path

Source: (SDK root)\Samples\Multimedia\D3dim\Src\VideoTex

Executable: (SDK root)\Samples\Multimedia\D3dim\Bin\Videotex.exe

User's Guide

Press F1 to see a list of the usual commands, or choose from the menu.

Programming Notes

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.