Esempio n. 1
0
 public Texture1D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 )
 {
     MakeTexture ( imageInfo.Width );
     Buffer = imageInfo.GetPixels ( colorKey );
     GenerateMipmap ( mipmapLevel );
 }
Esempio n. 2
0
 public Texture2D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 )
     : this(graphicsDevice, imageInfo.Width, imageInfo.Height)
 {
     Buffer = imageInfo.GetPixels ( colorKey );
 }