md3

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

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

Go to latest
Published: Jan 11, 2015 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	// contains filtered or unexported fields
}

func (*Frame) Max

func (f *Frame) Max() Vec3

func (*Frame) Min

func (f *Frame) Min() Vec3

func (*Frame) Name

func (f *Frame) Name() string

func (*Frame) Origin

func (f *Frame) Origin() Vec3

func (*Frame) Radius

func (f *Frame) Radius() float32

type Model

type Model struct {
	// contains filtered or unexported fields
}

func Read

func Read(data []byte) (*Model, error)

func (*Model) Frame

func (m *Model) Frame(index int) *Frame

func (*Model) Frames

func (m *Model) Frames() <-chan *Frame

func (*Model) Name

func (m *Model) Name() string

func (*Model) NumFrames

func (m *Model) NumFrames() int

func (*Model) NumSurfaces

func (m *Model) NumSurfaces() int

func (*Model) NumTags

func (m *Model) NumTags() int

func (*Model) Surface

func (m *Model) Surface(index int) *Surface

func (*Model) Surfaces

func (m *Model) Surfaces() <-chan *Surface

func (*Model) Tag

func (m *Model) Tag(index int) *Tag

func (*Model) Tags

func (m *Model) Tags() <-chan *Tag

type Shader

type Shader struct {
	Name  string
	Index int32
}

type Surface

type Surface struct {
	// contains filtered or unexported fields
}

func (*Surface) Name

func (s *Surface) Name() string

func (*Surface) NumFrames

func (s *Surface) NumFrames() int

NumFrames returns the number of frames of vertex data held by the surface. This should be equal to its parent model's NumFrames result.

func (*Surface) NumShaders

func (s *Surface) NumShaders() int

func (*Surface) NumTriangles

func (s *Surface) NumTriangles() int

func (*Surface) NumVertices

func (s *Surface) NumVertices() int

func (*Surface) Shader

func (s *Surface) Shader(index int) Shader

func (*Surface) Shaders

func (s *Surface) Shaders() <-chan Shader

func (*Surface) TexCoord

func (s *Surface) TexCoord(index int) TexCoord

func (*Surface) TexCoords

func (s *Surface) TexCoords() <-chan TexCoord

func (*Surface) Triangle

func (s *Surface) Triangle(index int) Triangle

func (*Surface) Triangles

func (s *Surface) Triangles() <-chan Triangle

func (*Surface) Vertex

func (s *Surface) Vertex(frame, index int) Vertex

func (*Surface) Vertices

func (s *Surface) Vertices(frame int) <-chan Vertex

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func (*Tag) Frame

func (t *Tag) Frame(frame int) TagFrame

func (*Tag) Frames

func (t *Tag) Frames() <-chan TagFrame

func (*Tag) Name

func (t *Tag) Name() string

func (*Tag) NumFrames

func (t *Tag) NumFrames() int

type TagFrame

type TagFrame struct {
	Origin       Vec3
	XOrientation Vec3
	YOrientation Vec3
	ZOrientation Vec3
}

type TexCoord

type TexCoord struct {
	S, T float32
}

type Triangle

type Triangle struct {
	A, B, C int32
}

type Vec3

type Vec3 struct {
	X, Y, Z float32
}

type Vertex

type Vertex struct {
	Origin Vec3
	Normal Vec3
}

Jump to

Keyboard shortcuts

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