Platform SDK: DirectX |
This section pertains only to application development in Visual Basic. See Direct3D Immediate Mode C/C++ Tutorials.
This tutorial prepares the geometry for the primitives in the application-defined InitGeometry subroutine. InitGeometry defines a series of vertices for each object; retaining each primitive's vertex information in globally defined data structures. Vertex information is used by the DrawPrimitive Methods during rendering.
Technically, you are not required to set up the geometry at this time—you can do it anytime prior to calling the rendering methods.
For more information on primitive types, see Primitive Types.
For more information on specifying vertices in Direct3D, see Vertex Formats.
Note The order in which the geometry is prepared for specific primitives does not effect the layout of objects in your scene.