Platform SDK: DirectX

Direct3D Immediate Mode C++ Samples

[Visual Basic]

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

[C++]

This section provides descriptions of sample applications provided with the DirectX SDK that are primarily intended to demonstrate how to use Direct3D Immediate Mode. The following samples are described:

Note  Most of the sample applications have a common interface (found in the D3DFrame Library) that has no menu bar. In addition to normal Microsoft® Windows® functions (minimize, maximize, restore, resize, and close), the interface supports the following commands:

Key/input Command
ESC Quit
F1 Help/About dialog box (lists these keystrokes)
F2 Device options
ALT+ENTER Toggle between full-screen and windowed mode
Right mouse button Display options popup menu.

The device options dialog box allows the user to change the driver, Direct3D device, or display mode (full-screen only) at run time. Not all devices can support rendering in a window at all display depths. Three-dimensional (3-D) hardware has finite video memory that may be exceeded for certain display modes and window sizes. In either case, the samples display a message and default to a software rasterizer.

Although DirectX samples include Microsoft® Visual C++® project workspace files, you might need to verify other settings in your development environment to ensure that the samples compile properly. For more information, see Compiling DirectX Samples and Other DirectX Applications.

See Also

Direct3D Immediate Mode C/C++ Tutorials