コード例 #1
0
 /// <summary>
 /// Must be called prior to any Draw() calls.
 /// Prepares the PrimitiveBatch.
 /// </summary>
 public static void Begin()
 {
     basicEffect.Projection = Matrix.OrthoOffCenterRH(0f, graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height, 0f, 0f, 1f);
     ApplyEffect();
     batch.Begin();
 }