NewTexture() public method

public NewTexture ( int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
return Microsoft.Xna.Framework.Graphics.Texture2D
示例#1
0
 public GraphicsDataForDevice(SpriteBatchExtended sb, int busIndex, int width, int height)
 {
     DeviceBusIndex = busIndex;
     Width = width;
     Height = height;
     Texture = sb.NewTexture(Width, Height);
     Data = new uint[Width * Height];
 }