XNA Sample--Drawing the 3D Axis

The steps for creating and rendering 3D objects in XNA can be summarized as follows:

1. Define the vertex type you’ll use (position plus color, texture, and so on).
2. Create an array of vertices and fill it with the vertices’ data.
3. Create a vertex buffer and fill it with the vertices previously created.
4. Define the effect to be used, with projection and view matrices and the light sources, if any.
5. Inform the device which vertices you’ll use.
6. Using the effect, draw the vertex buffer using a specific primitive type.




你可能感兴趣的:(XNA Sample--Drawing the 3D Axis)