blob: d8733b3d6c6c43ef357a24051d5a2a8e708d6a18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
using System;
namespace NW4RTools.Models {
public class VertexDataBase {
public UInt32 Index;
public UInt32 ComponentCount, ComponentType; // todo: enums
public byte Fraction /* Not used for colours */, EntrySize;
public UInt16 EntryCount;
// Todo, decode data when reading
public byte[] Data;
public VertexDataBase() {
}
}
public class VertexPosData : VertexDataBase {
public Vec3 Minimum, Maximum;
public VertexPosData() {
}
}
public class VertexNrmData : VertexDataBase {
public VertexNrmData() {
}
}
public class VertexClrData : VertexDataBase {
public VertexClrData() {
}
}
public class VertexTexCoordData : VertexDataBase {
public Vec2 Minimum, Maximum;
public VertexTexCoordData() {
}
}
}
|