Class ImageCubemap
- Namespace
- Bonsai.Shaders.Configuration
- Assembly
- Bonsai.Shaders.dll
Provides configuration and loading functionality for initializing cubemap texture resources from the specified image files.
public class ImageCubemap : Cubemap, IResourceConfiguration
- Inheritance
-
ImageCubemap
- Implements
- Inherited Members
Properties
ColorType
Gets or sets a value specifying optional conversions applied to the loaded image.
public LoadImageFlags ColorType { get; set; }
Property Value
FlipMode
Gets or sets a value specifying the optional flip mode applied to the loaded image.
public FlipMode? FlipMode { get; set; }
Property Value
NegativeX
Gets or sets the name of the image file to load for the negative X direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string NegativeX { get; set; }
Property Value
NegativeY
Gets or sets the name of the image file to load for the negative Y direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string NegativeY { get; set; }
Property Value
NegativeZ
Gets or sets the name of the image file to load for the negative Z direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string NegativeZ { get; set; }
Property Value
PositiveX
Gets or sets the name of the image file to load for the positive X direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string PositiveX { get; set; }
Property Value
PositiveY
Gets or sets the name of the image file to load for the positive Y direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string PositiveY { get; set; }
Property Value
PositiveZ
Gets or sets the name of the image file to load for the positive Z direction.
[FileNameFilter("Image Files|*.png;*.bmp;*.jpg;*.jpeg;*.tif|PNG Files (*.png)|*.png|BMP Files (*.bmp)|*.bmp|JPEG Files (*.jpg;*.jpeg)|*.jpg;*.jpeg|TIFF Files (*.tif)|*.tif")]
[TypeConverter(typeof(ResourceFileNameConverter))]
public string PositiveZ { get; set; }
Property Value
Methods
CreateResource(ResourceManager)
Creates a new cubemap texture resource from the specified image files.
public override Texture CreateResource(ResourceManager resourceManager)
Parameters
resourceManager
ResourceManagerThe ResourceManager object onto which this resource will be loaded. The resource manager can be accessed to load additional resource dependencies which may be required to create the new resource.