FSO.Content.Model.AbstractTextureRef.Get C# (CSharp) Метод

Get() публичный Метод

public Get ( Microsoft.Xna.Framework.Graphics.GraphicsDevice device ) : Microsoft.Xna.Framework.Graphics.Texture2D
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
Результат Microsoft.Xna.Framework.Graphics.Texture2D
        public Texture2D Get(GraphicsDevice device)
        {
            lock (this)
            {
                if (_Instance != null && !_Instance.IsDisposed)
                {
                    return _Instance;
                }

                using (var stream = GetStream())
                {
                    _Instance = Process(device, stream);
                    return _Instance;
                }
            }
        }