예제 #1
0
        public override void Draw(GameTime gameTime, DrowOptions options)
        {
            base.Draw(gameTime, options);
            Vector2 endPosition;

            if (End == null)
            {
                endPosition = GameManager.MousePosition.Location.ToVector2();
            }
            else
            {
                endPosition = new Vector2(End.Value.X, End.Value.Y);
            }
            var startPosition = new Vector2(Start.X, Start.Y);

            DrawLine(startPosition, endPosition);
        }
예제 #2
0
 public virtual void Draw(GameTime gameTime, DrowOptions options)
 {
     DrowOptions = options;
 }
예제 #3
0
파일: Cursor.cs 프로젝트: DnoEbanoe/GraphV2
 public override void Draw(GameTime gameTime, DrowOptions options)
 {
     GameManager.SpriteBatch.Draw(Texture, Position, Color.White);
 }
예제 #4
0
파일: Label.cs 프로젝트: DnoEbanoe/GraphV2
 public override void Draw(GameTime gameTime, DrowOptions options)
 {
     GameManager.SpriteBatch.DrawString(Font, Text, Position, Color);
     base.Draw(gameTime, options);
 }