Last change
on this file since 1171 was 1114, checked in by iritscen, 5 years ago |
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.
|
File size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 |
|
---|
4 | namespace Oni.Dae
|
---|
5 | {
|
---|
6 | internal class MeshPrimitives
|
---|
7 | {
|
---|
8 | private readonly MeshPrimitiveType primitiveType;
|
---|
9 | private readonly List<IndexedInput> inputs;
|
---|
10 | private readonly List<int> vertexCounts;
|
---|
11 |
|
---|
12 | public MeshPrimitives(MeshPrimitiveType primitiveType)
|
---|
13 | {
|
---|
14 | this.primitiveType = primitiveType;
|
---|
15 | this.inputs = new List<IndexedInput>(3);
|
---|
16 | this.vertexCounts = new List<int>();
|
---|
17 | }
|
---|
18 |
|
---|
19 | public MeshPrimitives(MeshPrimitiveType primitiveType, IEnumerable<IndexedInput> inputs)
|
---|
20 | {
|
---|
21 | this.primitiveType = primitiveType;
|
---|
22 | this.inputs = new List<IndexedInput>(inputs);
|
---|
23 | this.vertexCounts = new List<int>();
|
---|
24 | }
|
---|
25 |
|
---|
26 | public MeshPrimitiveType PrimitiveType => primitiveType;
|
---|
27 |
|
---|
28 | public string MaterialSymbol { get; set; }
|
---|
29 |
|
---|
30 | public List<IndexedInput> Inputs => inputs;
|
---|
31 |
|
---|
32 | public List<int> VertexCounts => vertexCounts;
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.