Table of Contents

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

LoadImageFlags

FlipMode

Gets or sets a value specifying the optional flip mode applied to the loaded image.

public FlipMode? FlipMode { get; set; }

Property Value

FlipMode?

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

string

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

string

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

string

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

string

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

string

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

string

Methods

CreateResource(ResourceManager)

Creates a new cubemap texture resource from the specified image files.

public override Texture CreateResource(ResourceManager resourceManager)

Parameters

resourceManager ResourceManager

The 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.

Returns

Texture

A new instance of the Texture class representing the cubemap texture.