models

package
v0.0.0-...-dda0d94 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	Load() error
	LoadJSON() error
	Encode() []byte
}

Model wraps the models formats

support for GLB/GLTF and SCW models is a priority

func LoadFromFile

func LoadFromFile(filename string) (Model, error)

LoadFromFile Loads a model from a file

for now, it checks the file type using the extension

TODO: use header MAGIC to detect file type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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