Class ModelCombiner
Combines Daggerfall model data.
Namespace: DaggerfallWorkshop.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class ModelCombiner
Constructors
| Improve this Doc View SourceModelCombiner()
Constructor.
Declaration
public ModelCombiner()
Properties
| Improve this Doc View SourceIsSealed
A sealed builder cannot be added to.
Declaration
public bool IsSealed { get; }
Property Value
Type | Description |
---|---|
Boolean |
VertexCount
Gets current vertex count of builder.
Declaration
public int VertexCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceAdd(ref ModelData, Matrix4x4)
Adds model data to combiner.
Declaration
public void Add(ref ModelData modelData, Matrix4x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
ModelData | modelData | Model data to add. |
Matrix4x4 | matrix | Transform to apply. |
Add(ModelCombiner, Matrix4x4)
Adds another ModelCombiner to this one.
Declaration
public void Add(ModelCombiner other, Matrix4x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
ModelCombiner | other | Other ModelCombiner. |
Matrix4x4 | matrix | Transform to apply |
Apply()
Apply all model combines and seal builder.
Declaration
public void Apply()
GetCombinedModel(out ModelCombiner.CombinedModel)
Gets combined model data created by Apply().
Declaration
public bool GetCombinedModel(out ModelCombiner.CombinedModel combinedModelOut)
Parameters
Type | Name | Description |
---|---|---|
ModelCombiner.CombinedModel | combinedModelOut | Combined model data out. |
Returns
Type | Description |
---|---|
Boolean | True if successful. |
NewCombiner()
Starts a new combiner.
Declaration
public void NewCombiner()