RenderingLibrary.Math.Geometry.LinePrimitive.LinePrimitive C# (CSharp) 메소드

LinePrimitive() 공개 메소드

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

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

            mVectors = new List<Vector2>();
        }