-
Notifications
You must be signed in to change notification settings - Fork 4
/
face.go
39 lines (38 loc) · 885 Bytes
/
face.go
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
package face
// Face
type Face struct {
// Planenum
Planenum uint16
// Side
Side byte
// OnNode
OnNode byte
// FirstEdge is index into the edges lump data
FirstEdge int32
// NumEdges is the number of edges that make up this face
NumEdges int16
// TexInfo is index into texinfos lump
TexInfo int16
// DispInfo is index into dispinfos lump
DispInfo int16
// SurfaceFogVolumeID
SurfaceFogVolumeID int16
// Styles
Styles [4]byte
// Lightofs is offset into lighting lump (-1 if unlit)
Lightofs int32
// Area is total size of this side (units^2)
Area float32
// LightmapTextureMinsInLuxels
LightmapTextureMinsInLuxels [2]int32
// LightmapTextureSizeInLuxels is XY size of lightmap data
LightmapTextureSizeInLuxels [2]int32
// OrigFace
OrigFace int32
// NumPrims
NumPrims uint16
// FirstPrimID
FirstPrimID uint16
// SmoothingGroups
SmoothingGroups uint32
}