RenderingLibrary.Math.Geometry.LinePrimitive.LinePrimitive C# (CSharp) Method

LinePrimitive() public method

Creates a new primitive line object.
public LinePrimitive ( Microsoft.Xna.Framework.Graphics.Texture2D singlePixelTexture ) : System
singlePixelTexture Microsoft.Xna.Framework.Graphics.Texture2D
return System
        public LinePrimitive(Texture2D singlePixelTexture)
        {
            // create pixels
            mTexture = singlePixelTexture;

            Color = Color.White;
            Position = new Vector2(0, 0);
            Depth = 0;

            mVectors = new List<Vector2>();
        }