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; } }
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; } }
public void t2D元サイズ基準描画(Device device, RefPnt refpnt, float x, float y, Rectangle rect) { this.t2D元サイズ基準描画(device, refpnt, x, y, 1f, rect); }
public void t2D元サイズ基準描画(Device device, RefPnt refpnt, float x, float y) { this.t2D元サイズ基準描画(device, refpnt, x, y, rcImageRect); }
public void t2D拡大率考慮描画(Device device, RefPnt refpnt, float x, float y) { this.t2D拡大率考慮描画(device, refpnt, x, y, rc全画像); }