DirectX SDK

Gravity Sample

[Visual Basic]

This topic pertains only to application development in C and C++. DirectX for Visual Basic does not include support for the Direct3DX utility library.

[C++]

Description

The Gravity sample displays a cluster of particles swirling around the center of the universe.

Path

Source: (SDK root)\Samples\Multimedia\D3dx\Src\Gravity

Executable: (SDK root)\Samples\Multimedia\D3dx\Bin\Gravity.exe

User's Guide

No user input is required.

Programming Notes

This sample illustrates the fundamentals of creating a 3-D environment and animating a group of objects in it. A variety of lighting effects are used. The sample also demonstrates the shape creation methods and the Direct3DX matrix stack.

This sample uses the Direct3DX utility library helper classes.