Platform SDK: DirectX

XFile Sample

[C++]

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

[Visual Basic]

Description

The XFile sample is a viewer for 3-D image files in DirectX format.

Path

Source: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Src\XFile

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

User's Guide

Load a file by selecting Open from the File menu. There are some sample .x files in the (SDK root)\Samples\Multimedia\VBSamples\D3DRM\media folder. Rotate the image by dragging the mouse anywhere in the window. Spin the image by releasing the mouse button while dragging, or by pressing an arrow key. Move the image closer or farther by using the plus and minus keys. Change the appearance of the object by selecting from the Fill Options and Shade Options menus.

Programming Notes

The core functionality for loading files is provided by XFileClass, which uses Direct3D Retained Mode.