| 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 |
} |