Platform SDK: DirectX

Lights Sample

[Visual Basic]

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

[C++]

Description

The Lights sample shows how to turn on and move the various types of Direct3D lights. The lights fly around, illuminating the scene, and switch every few seconds to a new type of light.

Path

Source: (SDK root)\Samples\Multimedia\D3dim\Src\Lights

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

User's Guide

Press F1 to see available commands, or choose from the menu.

Programming Notes

This sample shows how to set up the light properties for each of the types of lights available. It also shows how to dynamically orient the lights on each frame.