Fusion.Engine.Graphics.TextureMap.LoadTexture C# (CSharp) Method

LoadTexture() private method

private LoadTexture ( ContentManager content, string fallbackPath ) : DiscTexture
content ContentManager
fallbackPath string
return DiscTexture
		internal DiscTexture LoadTexture ( ContentManager content, string fallbackPath )
		{
			if (content==null) {
				throw new ArgumentNullException("content");
			}

			if (string.IsNullOrWhiteSpace(fallbackPath)) {
				throw new ArgumentNullException("fallbackPath");
			}

			if (string.IsNullOrWhiteSpace(Path)) {
				return content.Load<DiscTexture>( fallbackPath );
			}

			if (!content.Exists(Path)) {
				return content.Load<DiscTexture>( fallbackPath );
			}

			return content.Load<DiscTexture>( Path + (SRgb ? "|srgb" : "") );
		}
	}