Table of Contents

Class MaterialAdapter<Tfront, Tback>

Namespace
ReFuel.Resources
Assembly
ReFuel.dll
public class MaterialAdapter<Tfront, Tback> : IMaterialAdapter<Tfront, Tback>, IMaterialAdapter where Tfront : Material where Tback : Material, IMaterialAdaptable<Tfront>, new()

Type Parameters

Tfront
Tback
Inheritance
MaterialAdapter<Tfront, Tback>
Implements
IMaterialAdapter<Tfront, Tback>
Inherited Members

Properties

BackMaterial

Type of the back material.

public Type BackMaterial { get; }

Property Value

Type

FrontMaterial

Type of the front material.

public Type FrontMaterial { get; }

Property Value

Type

Instance

public static MaterialAdapter<Tfront, Tback> Instance { get; }

Property Value

MaterialAdapter<Tfront, Tback>

Methods

BackAnnotate(string, Material, Material)

Annotate changes from the back material to the front material.

public void BackAnnotate(string property, Material destination, Material source)

Parameters

property string

The name of the modified material property in the back material.

destination Material

The front material to update.

source Material

The back material that updated.

BackAnnotate(string, Tfront, Tback)

Annotate changes from the back material to the front material.

public void BackAnnotate(string property, Tfront destination, Tback source)

Parameters

property string

The name of the modified material property in the back material.

destination Tfront

The front material to update.

source Tback

The back material that updated.

CopyAndConvert(Material)

Copy and convert a front material to a back material.

public Material CopyAndConvert(Material source)

Parameters

source Material

The front material source.

Returns

Material

The new back material.

CopyAndConvert(Tfront)

Copy and convert a front material to a back material.

public Tback CopyAndConvert(Tfront source)

Parameters

source Tfront

The front material source.

Returns

Tback

The new back material.

ForwardAnnotate(string, Material, Material)

Annotate changes from the front material to the back material.

public void ForwardAnnotate(string property, Material source, Material destination)

Parameters

property string

The name of the modified material property in the front material.

source Material

The front material that updated.

destination Material

The destination material to update.

ForwardAnnotate(string, Tfront, Tback)

Annotate changes from the front material to the back material.

public void ForwardAnnotate(string property, Tfront source, Tback destination)

Parameters

property string

The name of the modified material property in the front material.

source Tfront

The front material that updated.

destination Tback

The destination material to update.