Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/FDK17プロジェクト/コード/04.グラフィック/CTexture.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 66 by kairera0467, Thu Apr 11 12:53:14 2013 UTC revision 67 by kairera0467, Sat Apr 13 02:57:24 2013 UTC
# Line 493  namespace FDK Line 493  namespace FDK
493                                  #endregion                                  #endregion
494                          }                          }
495                  }                  }
496          public void t2D上下反転描画( Device device, int x, int y )                  public void t2D上下反転描画( Device device, int x, int y )
497                  {                  {
498                          this.t2D上下反転描画( device, x, y, 1f, this.rc全画像 );                          this.t2D上下反転描画( device, x, y, 1f, this.rc全画像 );
499                  }                  }
# Line 508  namespace FDK Line 508  namespace FDK
508    
509                          this.tレンダリングステートの設定( device );                          this.tレンダリングステートの設定( device );
510    
511                          float fx = -0.5f;       // -0.5 は座標とピクセルの誤差を吸収するための座標補正値。(MSDN参照)                          float fx = x * CTexture.f画面比率 + CTexture.rc物理画面描画領域.X - 0.5f;   // -0.5 は座標とピクセルの誤差を吸収するための座標補正値。(MSDN参照)
512                          float fy = -0.5f;       //                          float fy = y * CTexture.f画面比率 + CTexture.rc物理画面描画領域.Y - 0.5f;   //
513                          float w = rc画像内の描画領域.Width * this.vc拡大縮小倍率.X * CTexture.f画面比率;                          float w = rc画像内の描画領域.Width * this.vc拡大縮小倍率.X * CTexture.f画面比率;
514                          float h = rc画像内の描画領域.Height * this.vc拡大縮小倍率.Y * CTexture.f画面比率;                          float h = rc画像内の描画領域.Height * this.vc拡大縮小倍率.Y * CTexture.f画面比率;
515                          float f左U値 = ( (float) rc画像内の描画領域.Left ) / ( (float) this.szテクスチャサイズ.Width );                          float f左U値 = ( (float) rc画像内の描画領域.Left ) / ( (float) this.szテクスチャサイズ.Width );
# Line 519  namespace FDK Line 519  namespace FDK
519                          this.color4.Alpha = ( (float) this._透明度 ) / 255f;                          this.color4.Alpha = ( (float) this._透明度 ) / 255f;
520                          int color = this.color4.ToArgb();                          int color = this.color4.ToArgb();
521    
522                          // 以下、マネージドオブジェクトの量産を抑えるため new は使わない。              if( this.cvTransformedColoredVertexies == null )
523                                this.cvTransformedColoredVertexies = new TransformedColoredTexturedVertex[ 4 ];
524    
525              if (this.cvTransformedColoredVertexies == null)                          // 以下、マネージドオブジェクトの量産を抑えるため new は使わない。
                 this.cvTransformedColoredVertexies = new TransformedColoredTexturedVertex[4];  
526    
527                          this.cvTransformedColoredVertexies[ 0 ].TextureCoordinates.X = f左U値;        // 左上       → 左下                          this.cvTransformedColoredVertexies[ 0 ].TextureCoordinates.X = f左U値;        // 左上       → 左下
528                          this.cvTransformedColoredVertexies[ 0 ].TextureCoordinates.Y = f下V値;                          this.cvTransformedColoredVertexies[ 0 ].TextureCoordinates.Y = f下V値;
# Line 687  namespace FDK Line 687  namespace FDK
687                  private int _透明度;                  private int _透明度;
688                  private bool bDispose完了済み;                  private bool bDispose完了済み;
689                  private PositionColoredTexturedVertex[] cvPositionColoredVertexies;                  private PositionColoredTexturedVertex[] cvPositionColoredVertexies;
690                  private TransformedColoredTexturedVertex[] cvTransformedColoredVertexies;          protected TransformedColoredTexturedVertex[] cvTransformedColoredVertexies = new TransformedColoredTexturedVertex[]
691                    {
692                            new TransformedColoredTexturedVertex(),
693                            new TransformedColoredTexturedVertex(),
694                            new TransformedColoredTexturedVertex(),
695                            new TransformedColoredTexturedVertex(),
696                    };
697                  private const Pool poolvar =                                                                                            // 2011.4.25 yyagi                  private const Pool poolvar =                                                                                            // 2011.4.25 yyagi
698  #if TEST_Direct3D9Ex  #if TEST_Direct3D9Ex
699                          Pool.Default;                          Pool.Default;

Legend:
Removed from v.66  
changed lines
  Added in v.67

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26