コード例 #1
0
 public override void GetBackBufferData <T>(Rectangle?rect, T[] data, int startIndex, int elementCount)
 {
     if (rect.HasValue)
     {
         XNA.Rectangle r;
         Rectangle     temp = rect.Value;
         XNAHelper.ConvertRectangle(ref temp, out r);
         _graphicsDevice.GetBackBufferData <T>(r, data, startIndex, elementCount);
     }
     else
     {
         _graphicsDevice.GetBackBufferData <T>(null, data, startIndex, elementCount);
     }
 }