Exemple #1
0
 /// <summary>
 /// Creates texture model from specified texture path.
 /// </summary>
 /// <param name="texturePath">The texture path.</param>
 /// <returns></returns>
 public static TextureModel Create(string texturePath)
 {
     return(TextureModelRepository != null?
            TextureModelRepository.Create(texturePath) : new TextureModel(texturePath));
 }
Exemple #2
0
 /// <summary>
 /// Creates texture model from specified stream.
 /// </summary>
 /// <param name="stream">The stream.</param>
 /// <returns></returns>
 public static TextureModel Create(Stream stream)
 {
     return(TextureModelRepository != null?
            TextureModelRepository.Create(stream) : new TextureModel(stream));
 }