예제 #1
0
파일: Texture1D.cs 프로젝트: Daramkun/Misty
 public Texture1D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 )
 {
     MakeTexture ( imageInfo.Width );
     Buffer = imageInfo.GetPixels ( colorKey );
     GenerateMipmap ( mipmapLevel );
 }
예제 #2
0
파일: Texture2D.cs 프로젝트: Daramkun/Misty
 public Texture2D( IGraphicsDevice graphicsDevice, ImageInfo imageInfo, Color? colorKey = null, int mipmapLevel = 1 )
     : this(graphicsDevice, imageInfo.Width, imageInfo.Height)
 {
     Buffer = imageInfo.GetPixels ( colorKey );
 }