Limitations of the Sample

This tutorial contains the Helworld.c example code, which creates a sphere, applies a texture to it, and rotates it in a window. This is the only source file required to build this application. Except for Sphere3.x, a mesh file that ships in the Media directory of the DirectX SDK, and a bitmap called Hello.ppm, no other files are needed.

Although this is based on the Globe example that is part of the DirectX SDK, that example has been simplified for this discussion. The Globe example, like all the Direct3D Retained-Mode examples in the SDK, required the inclusion of a file named Rmmain.cpp and a number of header files. In Helworld.c, the relevant parts of Rmmain.cpp have been converted to C from C++ and integrated into the source code.

The code shown in this tutorial should not be mistaken for production code. The only possible user interactions with the program are starting it, stopping it, and minimizing the window while it is running. Most of the error checking has been removed for the sake of clarity. The purpose of this example is analogous to the purpose of the famous simple program that simply prints "Hello, world!" on the screen; to produce output with as little confusion as possible.