Ejemplo n.º 1
0
 /// <summary>
 /// Converts a <see cref="Geometry"/> to a <see cref="GeometryInformation"/>
 /// </summary>
 /// <param name="geometry"></param>
 /// <returns></returns>
 public static GeometryInformation ToGeometryInformation(this Geometry geometry)
 {
     return(AssetConverter.ExtractInformation(geometry));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Converts a texture to a TextureInformation
 /// </summary>
 /// <param name="texture"></param>
 /// <returns></returns>
 public static TextureInformation ToTextureInformation(this Texture texture)
 {
     return(AssetConverter.ExtractInformation(texture));
 }