ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Motoko/Geometry.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 707 byte(s)
Log Message:
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.

File Contents

# Content
1 using System;
2
3 namespace Oni.Motoko
4 {
5 internal class Geometry
6 {
7 private InstanceDescriptor texture;
8
9 public string Name;
10 public Vector3[] Points;
11 public Vector3[] Normals;
12 public Vector2[] TexCoords;
13 public int[] Triangles;
14
15 public string TextureName;
16 public bool HasTransform;
17 public Matrix Transform;
18
19 public InstanceDescriptor Texture
20 {
21 get
22 {
23 return texture;
24 }
25 set
26 {
27 texture = value;
28 TextureName = value == null ? null : value.Name;
29 }
30 }
31 }
32 }