Microsoft DirectX 9.0 SDK Update (October 2004)

Microsoft® DirectX® 9.0 for Managed Code Samples

Language:

Note: This documentation is preliminary and is subject to change.

The samples in this section show how to use Microsoft Direct3D® and D3DX in a C# application. Once you have mastered the tutorials, you are ready to jump into the samples. Some of these samples demonstrate the latest features of DirectX 9.0 for Managed Code. Other samples demonstrate existing functionality that is fundamental to using Direct3D. All of the samples are built on top of the sample framework. See The Sample Framework and Sample Framework Reference.

Samples

These samples demonstrate the newest techniques incorporated into DirectX. Although DirectX samples include Microsoft Visual Studio® .NET solution files, you might need to verify other settings in your development environment to ensure that the samples compile properly.

Sample Description
BasicHLSL Direct3D Sample Shows a simple example of the high-level shader language (HLSL) using an effect interface.
CompiledEffect Direct3D Sample Shows how an Effect object can be compiled when the project is built and loaded directly as a binary file at run time.
CustomUI Direct3D Sample A simple demonstration of the user interface (UI) subsystem implemented by the DirectX 9.0 for Managed Code sample framework.
EmptyProject Direct3D Sample A starting point for new Direct3D applications.
EnhancedMesh Direct3D Sample Demonstrates mesh tessellation in Direct3D.
HDRCubeMap Direct3D Sample Demonstrates cubic environment-mapping with floating-point textures and high dynamic range (HDR) lighting.
HLSLwithoutEffects Direct3D Sample Shows an example of how to use Direct3D's HLSL, without the use of the D3DX effect interfaces.
ProgressiveMesh Direct3D Sample Shows how an application can use the D3DX progressive mesh functionality to simplify meshes for faster rendering.
C# Scripting Direct3D Sample Demonstrates one possible technique for using C# code as a 'script' in your unmanaged applications, and includes techniques to ensure scripts that are not deemed to be 'safe' cannot be executed.
Text3D Direct3D Sample Shows how to draw 2-D text in a 3-D scene.

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center