Parser for a Tesla Engine Material (TEM) script file. Loads either the first material in the file, or a material collection.
Declaration Syntax
C# |
public sealed class MaterialParser
Members
All Members | Constructors | Methods | |||
|
|
|
Icon | Member | Description |
---|---|---|
MaterialParser(ContentManager) |
Creates a new instance of MaterialParser.
|
|
Equals(Object) |
(Inherited from Object.) |
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
LoadAllMaterials(IResource, LoaderParameters) |
Parses a material file and loads all materials (in the order they appear in the file) as
a material collection. Materials need not to have unique names but should be separated from
each other at least by a whitespace or new line.
|
|
LoadFirstMaterial(IResource, LoaderParameters) |
Parses a material file and loads the very first material found in the script file.
|
|
LoadMaterial(IResource, LoaderParameters) |
Parses a material file and loads the first material found in the script file that
has the same matching name as in the loader parameter. If a valid material loader parameter
object has not been passed, then this defaults to loading the first material in the script.
|
|
ToString()()()() |
(Inherited from Object.) |
Inheritance Hierarchy
Object | |
MaterialParser |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)