public static Texture2D ConvertDataToTexture(BinaryTexture data, GraphicsDevice graphics)
 {
     Texture2D returnTexture = new Texture2D(graphics,data.Width,data.Height);
     returnTexture.SetData(data.ColorData, 0, data.ColorData.Length);
     returnTexture.Name = data.Name;
     return returnTexture;
 }
Beispiel #2
0
        public static Texture2D ConvertDataToTexture(BinaryTexture data, GraphicsDevice graphics)
        {
            Texture2D returnTexture = new Texture2D(graphics, data.Width, data.Height);

            returnTexture.SetData(data.ColorData, 0, data.ColorData.Length);
            returnTexture.Name = data.Name;
            return(returnTexture);
        }
 public PreviewAnimationWindow(Animation animation, BinaryTexture texture)
 {
     InitializeComponent();
     previewAnimation = animation;
     animationTexture = texture;
 }