types

package
v0.0.0-...-2dc90a3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeshDefinition

type MeshDefinition struct {
	NameLen    uint32
	FaceOffset uint32
}

type SMD

type SMD struct {
	Header struct {
		Version        byte
		NumIdx         uint32
		NumVert        uint32
		Unk1           byte
		NumMeshs       byte
		Unk2           byte
		TotalStringLen uint32
		BoundingBox    [6]float32
	}

	MeshDefinitions []MeshDefinition
	Names           []string

	IndexBuffer []uint16

	VertexBuffer []SMDVertex
}

func NewSMD

func NewSMD() (this *SMD)

func (*SMD) Convert

func (this *SMD) Convert(fileType string, file *os.File)

func (*SMD) Decode

func (this *SMD) Decode(file io.Reader) bool

type SMDVertex

type SMDVertex struct {
	X          float32
	Y          float32
	Z          float32
	Unk1       [4]int16
	U          utils.Float16
	V          utils.Float16
	BoneIndex  [4]byte
	BoneWeight [4]byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL