Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadingRequest"/> class to load a texture from a <see cref="SiliconStudio.Xenko.Graphics.Image"/> instance.
 /// </summary>
 /// <param name="image">The image.</param>
 /// <param name="loadAsSRgb">Indicate if the input file should be loaded as in sRGB file</param>
 public LoadingRequest(Xenko.Graphics.Image image, bool loadAsSRgb)
 {
     XkImage    = image;
     Mode       = LoadingMode.XkImage;
     LoadAsSRgb = loadAsSRgb;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoadingRequest"/> class to load a texture from a <see cref="SiliconStudio.Xenko.Graphics.Image"/> instance.
 /// </summary>
 /// <param name="image">The image.</param>
 /// <param name="loadAsSRgb">Indicate if the input file should be loaded as in sRGB file</param>
 public LoadingRequest(Xenko.Graphics.Image image, bool loadAsSRgb)
 {
     XkImage = image;
     Mode = LoadingMode.XkImage;
     LoadAsSRgb = loadAsSRgb;
 }