Ejemplo n.º 1
0
        /**
         * Rectをライン描画する for Debug
         */
        public void drawRectLine(Graphics g, PointF offset, int color)
        {
            Rectangle _rect = new Rectangle(rect.Left + (int)offset.X,
                                            rect.Top + (int)offset.Y,
                                            rect.Right + (int)offset.X,
                                            rect.Bottom + (int)offset.Y);

            UDraw.drawRect(g, _rect, 2, color);
        }
Ejemplo n.º 2
0
        private void drawDebugPoint(Graphics g)
        {
            foreach (DebugPoint dp in debugPoints)
            {
                UDraw.drawLine(g, dp.x - 50, dp.y, dp.x + 50, dp.y, 3, dp.color);
                UDraw.drawLine(g, dp.x, dp.y - 50, dp.x, dp.y + 50, 3, dp.color);
            }

            foreach (DebugPoint dp in debugPoints2.Values)
            {
                UDraw.drawLine(g, dp.x - 50, dp.y, dp.x + 50, dp.y, 3, dp.color);
                UDraw.drawLine(g, dp.x, dp.y - 50, dp.x, dp.y + 50, 3, dp.color);
            }
        }