scr

package
v0.0.0-...-e0f7b17 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Signature uint32 = 0x00726373
)

Variables

This section is empty.

Functions

func ConvertToGlft

func ConvertToGlft(
	scrPath string,
	tm3Path string,
	textureShift int,
) error

func FromPath

func FromPath(scr *Scr, filePath string) error

func FromPathWithOffset

func FromPathWithOffset(scr *Scr, filePath string, offset uint32) error

func FromStream

func FromStream(scr *Scr, stream io.ReadWriteSeeker) error

func FromStreamWithOffset

func FromStreamWithOffset(scr *Scr, stream io.ReadWriteSeeker, offset uint32) error

Types

type Node

type Node struct {
	Mdb         *mdb.Mdb   `json:"mdb"`
	Name        string     `json:"name"`
	Translation [3]float32 `json:"translation"`
	Rotation    [3]float32 `json:"rotation"`
	Scale       [3]float32 `json:"scale"`
}

func NewNode

func NewNode(
	m *mdb.Mdb,
	name string,
	scale [3]float32,
	rotation [3]float32,
	translation [3]float32,
) *Node

type Scr

type Scr struct {
	Offset    uint32  `json:"offset"`
	NodeTotal uint32  `json:"node_total"`
	Nodes     []*Node `json:"nodes"`
}

func New

func New() *Scr

Jump to

Keyboard shortcuts

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