Draw() public method

public Draw ( GraphicsDevice device ) : void
device GraphicsDevice
return void
コード例 #1
0
 public void End()
 {
     foreach (EffectPass pass in effect.CurrentTechnique.Passes)
     {
         pass.Apply();
         batcher.Draw(device);
     }
 }
コード例 #2
0
 public void End(Effect customEffect = null)
 {
     foreach (EffectPass pass in effect.CurrentTechnique.Passes)
     {
         pass.Apply();
         if (customEffect != null)
         {
             customEffect.Parameters["MatrixTransform"].SetValue(effect.World * effect.View * effect.Projection);
             customEffect.CurrentTechnique.Passes[0].Apply();
         }
         batcher.Draw(device);
     }
 }