Monday, July 29, 2013

Draw primitives in XNA

 
                           
                                        Best way to draw a primitive on the screen is declare an array of vertices and pass those to the DrawUserPrimitive method. Now lets see how to do it. First you need to create an instance of BasicEffect.