Drawing the model
Once everything has been created and loaded, we can look at drawing the vertices to the screen using the specified shader. There are a couple of steps before which we can call the
Draw()
method; however, these are all simple method calls to indicate we will use each resource.
Note
A quick note on topology
Topology defines how Direct3D will read and interpret the provided indices or vertices to lay out the mesh. When drawing the mesh, it can be optimized to reduce the number of required vertices and indices by reusing the last two indices when drawing. This is referred to as a triangle strip. Consuming and using the vertices and indices as originally described would involve a triangle list, which is the simplest and often most compatible topology that can be used for drawing triangles, as a strip requires extra processing to ensure the order is correct without breaking the model.
Other options such as lines and points also exist, and these notify Direct3D that you don&apos...