ARCed.Controls.AnimationSourceXnaPanel.RefreshTexture C# (CSharp) Method

RefreshTexture() private method

private RefreshTexture ( ) : void
return void
        private void RefreshTexture()
        {
            using (var image = Cache.Animation(this._animation.animation_name, this._animation.animation_hue))
            {
                if (image == null)
                {
                    this._srcTexture = null;
                    this._frames = 0;
                    Visible = false;
                    return;
                }
                Visible = true;
                this._frames = (image.Width / Constants.ANIMESIZE) * (image.Height / Constants.ANIMESIZE);
                this._srcTexture = image.ToTexture(GraphicsDevice);
            }
        }