Setting up the 3D Environment

This section describes the code in Helworld.c that establishes the 3D environment. The following sections describe the two functions that perform this task:

·Creating the Device and Viewport

·Setting the Render State

These functions do not populate the 3D environment with objects, frames, and lights. That is done by the MyScene function and the functions it calls. For information about filling up the 3D environment, see Creating the Scene.