Microsoft DirectX 8.1 (Visual Basic) |
The AutoParts sample illustrates the use of picking against a 3-D database.
Source: (SDK root)\Samples\Multimedia\VBSamples\Direct3D\Autoparts
Executable: (SDK root)\Samples\Multimedia\VBSamples\Direct3D\Bin
Choose Click here in the tree view on the left side to load the engine model. You can rotate the model by holding the mouse button and dragging. When you click on a part, its description appears in the lower-left corner.
The Add and Remove from Invoice button manages the invoice list, but the Order button has no function.
Each object in the Engine model is named. These names are unique and can be used to cross-reference a database. In this example, a custom text database is used so as not to require installing MDAC. From that database, more detailed information, such as price and part number, is gathered on the part.
This sample uses common Microsoft® DirectX® code that consists of programming elements such as helper functions. This code is shared with other samples on the DirectX SDK. You can find the common source code in (SDK root)\Samples\Multimedia\VBSamples.