model

package
v1.4.147 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMethodInt added in v1.4.117

func RenderMethodInt(in string) uint32

func RenderMethodStr added in v1.4.117

func RenderMethodStr(in uint32) string

Types

type FragmentReadWriter

type FragmentReadWriter interface {
	FragmentReader
	FragmentWriter
}

FragmentReadWriter is used to read a fragment in wld format

type FragmentReader

type FragmentReader interface {
	Read(w io.ReadSeeker) error
	FragCode() int
}

type FragmentWriter

type FragmentWriter interface {
	Write(w io.Writer) error
}

FragmentWriter2 is used to write a fragment in wld format

type Quad4

type Quad4 struct {
	X float32 `yaml:"fx"`
	Y float32 `yaml:"fy"`
	Z float32 `yaml:"fz"`
	W float32 `yaml:"fw"`
}

Quad4 has X,Y,Z,W defined as float32

type RGBA

type RGBA struct {
	R uint8 `yaml:"r"`
	G uint8 `yaml:"g"`
	B uint8 `yaml:"b"`
	A uint8 `yaml:"a"`
}

RGBA represents R,G,B,A as uint8

type UIndex3

type UIndex3 struct {
	X uint32 `yaml:"ux"`
	Y uint32 `yaml:"uy"`
	Z uint32 `yaml:"uz"`
}

UIndex3 has X,Y,Z defined as uint32

type Vector2

type Vector2 struct {
	X float32 `yaml:"fx"`
	Y float32 `yaml:"fy"`
}

Vector2 has X,Y defined as float32

type Vector3

type Vector3 struct {
	X float32 `yaml:"fx"`
	Y float32 `yaml:"fy"`
	Z float32 `yaml:"fz"`
}

Vector3 has X,Y,Z defined as float32

Jump to

Keyboard shortcuts

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