Exemple #1
0
 /// <summary>
 /// Adds image from an existing TextureArray2D
 /// </summary>
 /// <param name="texture"></param>
 public void AddImage(TextureArray2DInformation texture)
 {
     Debug.Assert(!context.GlEnabled);
     context.Enable();
     Add(new ImageData(texture));
     context.Disable();
 }
Exemple #2
0
 public ImageData(TextureArray2DInformation info)
 {
     this.TextureArray = info.Image;
     NumMipmaps        = TextureArray.NumMipmaps;
     NumLayers         = TextureArray.NumLayer;
     IsGrayscale       = info.IsGrayscale;
     HasAlpha          = info.IsAlpha;
     IsHdr             = true;
     Filename          = info.Name;
     FormatName        = new ImageLoader.ImageFormat(PixelFormat.Rgba, PixelType.Float, false).ToString();
 }