Platform SDK: DirectX

Step 3: Initialize the Scene

[C++]

This section pertains only to application development in Visual Basic. See Direct3D Immediate Mode C/C++ Tutorials.

[Visual Basic]

After creating the primary Direct3D-related objects—a DirectDraw object, a rendering device, and a viewport—you can begin initializing the scene by preparing the materials, configuring the transformation matrices, and setting up the geometry for your application. The Triangle tutorial application performs the following steps, initializing the scene: