rex

package
v0.0.0-...-6af930d Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRexNode

func CreateRexNode(rex *rexfile.File, name string) (*core.Node, error)

Types

type Decoder

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

Decoder is the REX file decoder

func NewDecoder

func NewDecoder(rexFile string) (*Decoder, error)

NewDecoder opens the reader and prepares everything for building the scene graph If file does not exist, an error will be returned

func NewDecoderReader

func NewDecoderReader(r io.Reader) *Decoder

NewDecoderReader creates a decoder with a reader

func (*Decoder) NewGroup

func (dec *Decoder) NewGroup(name string) (*core.Node, error)

NewGroup creates and returns a group containing as children meshes. A group is returned even if there is only one object decoded.

Jump to

Keyboard shortcuts

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