Documentation
¶
Overview ¶
Package mdl loads Quake MDL files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
QuakePalette = []color.Color{}/* 256 elements not displayed */
)
View Source
var (
Verbose = false
)
Functions ¶
This section is empty.
Types ¶
type Model ¶
type ModelVertex ¶
func (*ModelVertex) String ¶
func (v *ModelVertex) String() string
type RawHeader ¶
type RawHeader struct {
Ident uint32 // magic number: "IDPO"
Version uint32 /* version: 6 */
Scale Vertex /* scale factor */
Translate Vertex /* translation vector */
BoundinGradius float32
EyePosition Vertex /* eyes' position */
NumSkins uint32 /* number of textures */
SkinWidth uint32 /* texture width */
SkinHeight uint32 /* texture height */
NumVertices uint32 /* number of vertices */
NumTriangles uint32 /* number of triangles */
NumFrames uint32 /* number of frames */
Synctype uint32 /* 0 = synchron, 1 = random */
Flags uint32 /* state flag */
Size float32
}
type SimpleFrame ¶
type SimpleFrame struct {
Name string
Vertices []ModelVertex
}
Click to show internal directories.
Click to hide internal directories.