models

package
v0.0.0-...-1fa7888 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cube

func Cube() gpu.Vertices

Cube returns vertices that represent a cube.

func Open

func Open(name string, into []gpu.Model) error

Open opens the provided 3D model file and tries to load models into the provided interface. Valid interface types are *gpu.Model, []gpu.Model

func RegisterFormat

func RegisterFormat(ext string, opener Opener)

Types

type Group

type Group struct {
	gpu.Transform
	// contains filtered or unexported fields
}

type Opener

type Opener func(name string, into []gpu.Model) error

Directories

Path Synopsis
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl).
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl).

Jump to

Keyboard shortcuts

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