bayinx.wordpress.com
Guilherme Silva | Bayinx
https://bayinx.wordpress.com/author/theglyph
Author Archive for Guilherme Silva. How to Draw lines, circles and polygons using SpriteBatch in xna. In this tutorial, i am going going to show how to draw lines, circles, rectangles and other polygons using the spritebatch. Here is a video of the final project in action. The base for this tutorial is how to draw a line. After that, the other shapes are nothing more than a combination of lines (even the circle, as you’ll see). Float length = Vector2.Distance(point1, point2);. SpriteEffects.None, 0f);.
bayinx.wordpress.com
How to Draw lines, circles and polygons using SpriteBatch in xna | Bayinx
https://bayinx.wordpress.com/2011/11/07/how-to-draw-lines-circles-and-polygons-using-spritebatch-in-xna
How to Draw lines, circles and polygons using SpriteBatch in xna. In this tutorial, i am going going to show how to draw lines, circles, rectangles and other polygons using the spritebatch. Here is a video of the final project in action. The base for this tutorial is how to draw a line. After that, the other shapes are nothing more than a combination of lines (even the circle, as you’ll see). Float angle = (float)Math.Atan2(point2.Y – point1.Y, point2.X – point1.X);. SpriteEffects.None, 0f);. Public stat...