Class TexturedModel
- Namespace
- Bonsai.Shaders.Configuration
- Assembly
- Bonsai.Shaders.dll
Provides configuration and loading functionality for textured mesh resources specified as OBJ files.
public class TexturedModel : MeshConfiguration, IResourceConfiguration
- Inheritance
-
TexturedModel
- Implements
- Inherited Members
Properties
FileName
Gets or sets the name of the model OBJ file.
[TypeConverter(typeof(ResourceFileNameConverter))]
[FileNameFilter("OBJ Files (*.obj)|*.obj")]
public string FileName { get; set; }
Property Value
Methods
CreateResource(ResourceManager)
Creates a new mesh resource using the geometry specified in the OBJ file.
public override Mesh 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.
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.