DirectX SDK |
This topic pertains only to application development in Visual Basic. See Direct3D Immediate Mode C++ Samples.
This sample is a control that can be used in an application to render a 3-D scene. It is used in most of the other Visual Basic Direct3D samples.
Source: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Src\Imcontrol
Executable: (SDK root)\Samples\Multimedia\VBSamples\D3dim\Bin\Imcontrol.exe
For an example of how Imcontrol.ocx can be integrated into a 3-D application, see the Billboard sample. Most of the other samples also use this control.
The control handles the initialization of DirectDraw and Direct3D in full-screen and windowed modes, as well as implementing the F5 key for displaying a dialog box that allows the user to change the device and configuration.