|
static void | Serialize (string outPath, params object[] assets) |
|
◆ Serialize()
static void BrawlLib.Modeling.Wavefront.Serialize |
( |
string |
outPath, |
|
|
params object[] |
assets |
|
) |
| |
|
inlinestatic |
11 {
12 using (FileStream stream = new FileStream(outPath, FileMode.Create, FileAccess.ReadWrite, FileShare.None))
13 {
14 using (StreamWriter writer = new StreamWriter(stream))
15 {
16 writer.WriteLine(
17 $"#Wavefront OBJ file, generated by {Application.ProductName} v{Application.ProductVersion}");
18
19 foreach (object o in assets)
20 {
22 {
24 }
26 {
28 }
30 {
32 }
34 {
36 {
37 WritePolygon(writer, c);
38 }
39 }
40 }
41
42 writer.Flush();
43 }
44 }
45 }
Definition: MDL0ObjectNode.cs:2040
Definition: MDL0NormalNode.cs:10
Definition: MDL0ObjectNode.cs:21
Definition: MDL0UVNode.cs:10
Definition: MDL0VertexNode.cs:11
The documentation for this class was generated from the following file:
- BrawlLib/Modeling/Wavefront.cs