FSO.Client.UI.Framework.UIElement.GetTexture C# (CSharp) Метод

GetTexture() публичный статический Метод

public static GetTexture ( ulong id ) : Microsoft.Xna.Framework.Graphics.Texture2D
id ulong
Результат Microsoft.Xna.Framework.Graphics.Texture2D
        public static Texture2D GetTexture(ulong id)
        {
            try
            {
                return Content.Content.Get().UIGraphics.Get(id).Get(GameFacade.GraphicsDevice);
            }
            catch (Exception e)
            {
            }
            //TODO: darren wants to return null here. that might break some existing code
            return new Texture2D(GameFacade.GraphicsDevice, 1, 1);
        }

Same methods

UIElement::GetTexture ( ContentID id ) : Microsoft.Xna.Framework.Graphics.Texture2D