コード例 #1
0
ファイル: CTexture.cs プロジェクト: takaopapa/TJAPlayer3-f
        public void t2D元サイズ基準描画(Device device, RefPnt refpnt, float x, float y, float depth, Rectangle rect)
        {
            switch (refpnt)
            {
            case RefPnt.UpLeft:
                this.t2D描画(device, x, y, depth, rect);
                break;

            case RefPnt.Up:
                this.t2D描画(device, x - (szTextureSize.Width / 2), y, depth, rect);
                break;

            case RefPnt.UpRight:
                this.t2D描画(device, x - szTextureSize.Width, y, depth, rect);
                break;

            case RefPnt.Left:
                this.t2D描画(device, x, y - (szTextureSize.Height / 2), depth, rect);
                break;

            case RefPnt.Center:
                this.t2D描画(device, x - (szTextureSize.Width / 2), y - (szTextureSize.Height / 2), depth, rect);
                break;

            case RefPnt.Right:
                this.t2D描画(device, x - szTextureSize.Width, y - (szTextureSize.Height / 2), depth, rect);
                break;

            case RefPnt.DownLeft:
                this.t2D描画(device, x, y - szTextureSize.Height, depth, rect);
                break;

            case RefPnt.Down:
                this.t2D描画(device, x - (szTextureSize.Width / 2), y - szTextureSize.Height, depth, rect);
                break;

            case RefPnt.DownRight:
                this.t2D描画(device, x - szTextureSize.Width, y - szTextureSize.Height, depth, rect);
                break;

            default:
                break;
            }
        }
コード例 #2
0
ファイル: CTexture.cs プロジェクト: takaopapa/TJAPlayer3-f
        public void t2D拡大率考慮描画(Device device, RefPnt refpnt, float x, float y, float depth, Rectangle rect)
        {
            switch (refpnt)
            {
            case RefPnt.UpLeft:
                this.t2D描画(device, x, y, depth, rect);
                break;

            case RefPnt.Up:
                this.t2D描画(device, x - (rect.Width / 2 * this.vcScaling.X), y, depth, rect);
                break;

            case RefPnt.UpRight:
                this.t2D描画(device, x - rect.Width * this.vcScaling.X, y, depth, rect);
                break;

            case RefPnt.Left:
                this.t2D描画(device, x, y - (rect.Height / 2 * this.vcScaling.Y), depth, rect);
                break;

            case RefPnt.Center:
                this.t2D描画(device, x - (rect.Width / 2 * this.vcScaling.X), y - (rect.Height / 2 * this.vcScaling.Y), depth, rect);
                break;

            case RefPnt.Right:
                this.t2D描画(device, x - rect.Width * this.vcScaling.X, y - (rect.Height / 2 * this.vcScaling.Y), depth, rect);
                break;

            case RefPnt.DownLeft:
                this.t2D描画(device, x, y - rect.Height * this.vcScaling.Y, depth, rect);
                break;

            case RefPnt.Down:
                this.t2D描画(device, x - (rect.Width / 2 * this.vcScaling.X), y - rect.Height * this.vcScaling.Y, depth, rect);
                break;

            case RefPnt.DownRight:
                this.t2D描画(device, x - rect.Width * this.vcScaling.X, y - rect.Height * this.vcScaling.Y, depth, rect);
                break;

            default:
                break;
            }
        }
コード例 #3
0
ファイル: CTexture.cs プロジェクト: takaopapa/TJAPlayer3-f
 public void t2D元サイズ基準描画(Device device, RefPnt refpnt, float x, float y, Rectangle rect)
 {
     this.t2D元サイズ基準描画(device, refpnt, x, y, 1f, rect);
 }
コード例 #4
0
ファイル: CTexture.cs プロジェクト: takaopapa/TJAPlayer3-f
 public void t2D元サイズ基準描画(Device device, RefPnt refpnt, float x, float y)
 {
     this.t2D元サイズ基準描画(device, refpnt, x, y, rcImageRect);
 }
コード例 #5
0
ファイル: CTexture.cs プロジェクト: KILLLA891733/TJAPlayer3-f
 public void t2D拡大率考慮描画(Device device, RefPnt refpnt, float x, float y)
 {
     this.t2D拡大率考慮描画(device, refpnt, x, y, rc全画像);
 }