コード例 #1
0
        private void Canvas2D_DrawGame()
        {
            point.X  = panel2D1.MouseLocation.X - Width / 2 + 8;
            point.Y  = -(panel2D1.MouseLocation.Y - Height / 2) - 24;
            point.X /= 4.6f;
            point.Y /= 1.2f;
            Text     = string.Concat("(", point.X, ",", point.Y
                                     , ")窗口宽度", Width, ",窗口长度", Height);

            texture.Draw2D();
            point.Draw2D();
            control.Draw();
        }
コード例 #2
0
        private void Canvas2D_DrawGame()
        {
            mouseLocation.X  = panel2D1.MouseLocation.X - Width / 2 + 8;
            mouseLocation.Y  = -(panel2D1.MouseLocation.Y - Height / 2) - 24;
            mouseLocation.X /= 4.6f;
            mouseLocation.Y /= 1.2f;

            kiLocation.Location = control.NoticePoint;

            Text = "(" + mouseLocation.X + "," + mouseLocation.Y
                   + ")窗口宽度" + Width + ",窗口长度" + Height;
            tex.Draw2D();
            kiLocation.Draw2D();
            mouseLocation.Draw2D();
            control.Draw();
        }