コード例 #1
0
ファイル: Placeable.cs プロジェクト: yoiang/XNAUtility
 public virtual void setDebugData( DebugForm DebugForm )
 {
     if( DebugForm != null )
     {
         DebugForm.setDebugValue( Name + "|Placeable|Location", Location.ToString() );
         DebugForm.setDebugValue(Name + "|Placeable|Rotation", Rotation.ToString());
     }
 }
コード例 #2
0
ファイル: Camera.cs プロジェクト: yoiang/XNAUtility
 public override void setDebugData( DebugForm DebugForm )
 {
     if( DebugForm != null )
     {
         DebugForm.setDebugValue( Name + "|Camera|Near Clip Distance", mNearClipDistance.ToString() );
         DebugForm.setDebugValue( Name + "|Camera|Far Clip Distance", mFarClipDistance.ToString() );
         DebugForm.setDebugValue( Name + "|Camera|Aspect Ratio", mAspectRatio.ToString() );
         base.setDebugData( DebugForm );
     }
 }
コード例 #3
0
ファイル: Terrain.cs プロジェクト: yoiang/MCXNA
 public override void setDebugData( DebugForm DebugForm )
 {
     if( DebugForm != null )
     {
         DebugForm.setDebugValue( Name + "|Terrain|Subdivisions", ( mDepth - 1 ).ToString() );
         DebugForm.setDebugValue( Name + "|Terrain|Triangles", ( ( int )Math.Pow( 4, mDepth - 1 ) * 6 ).ToString() );
         base.setDebugData( DebugForm );
     }
 }
コード例 #4
0
ファイル: GameArgs.cs プロジェクト: yoiang/XNAUtility
 public void openDebugForm()
 {
     if( mDebugForm == null )
     {
         mDebugForm = new DebugForm();
         mDebugForm.Location = new System.Drawing.Point( Game.Window.ClientBounds.X + Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Y );
         mDebugForm.Show();
     }
     foreach( Placeable Object in WorldObjects )
     {
         Object.setDebugData( mDebugForm );
     }
 }
コード例 #5
0
ファイル: Light.cs プロジェクト: yoiang/MCXNA
 public override void setDebugData( DebugForm DebugForm )
 {
     if( DebugForm != null )
     {
         DebugForm.setDebugValue( Name + "|Sun|Ambient", AmbientIntensity.ToString() );
         base.setDebugData( DebugForm );
     }
 }
コード例 #6
0
ファイル: Light.cs プロジェクト: yoiang/MCXNA
 public override void setDebugData( DebugForm DebugForm )
 {
     if( DebugForm != null )
     {
         DebugForm.setDebugValue( Name + "|Light|Diffuse", DiffuseIntensity.ToString() );
         base.setDebugData( DebugForm );
     }
 }