loader

package
v0.0.0-...-5ecc521 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Zlib Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadLevelOBJ

func LoadLevelOBJ(name, path string, loadToGPU bool) *gohome.Level

func LoadLevelOBJString

func LoadLevelOBJString(name, contents, fileName string, loadToGPU bool) *gohome.Level

Types

type MTLLoader

type MTLLoader struct {
	Materials []OBJMaterial
	// contains filtered or unexported fields
}

func (*MTLLoader) Load

func (this *MTLLoader) Load(path string) error

func (*MTLLoader) LoadReader

func (this *MTLLoader) LoadReader(reader io.ReadCloser) error

type OBJColor

type OBJColor [3]float32

type OBJLoader

type OBJLoader struct {
	Models            []OBJModel
	MaterialLoader    MTLLoader
	DisableGoRoutines bool
	// contains filtered or unexported fields
}

func (*OBJLoader) Load

func (this *OBJLoader) Load(path string) error

func (*OBJLoader) LoadReader

func (this *OBJLoader) LoadReader(reader io.ReadCloser) error

func (*OBJLoader) SetDirectory

func (this *OBJLoader) SetDirectory(dir string)

type OBJMaterial

type OBJMaterial struct {
	Name             string
	DiffuseColor     color.Color
	SpecularColor    color.Color
	Transperancy     float32
	SpecularExponent float32
	DiffuseTexture   string
	SpecularTexture  string
	NormalMap        string
}

type OBJMesh

type OBJMesh struct {
	Name     string
	Vertices []gohome.Mesh3DVertex
	Indices  []uint32
	Material *OBJMaterial
}

type OBJModel

type OBJModel struct {
	Name   string
	Meshes []OBJMesh
}

type OBJWaitGroup

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

func (*OBJWaitGroup) Add

func (this *OBJWaitGroup) Add(i int)

func (*OBJWaitGroup) Done

func (this *OBJWaitGroup) Done()

func (*OBJWaitGroup) WaitForDone

func (this *OBJWaitGroup) WaitForDone() bool

Jump to

Keyboard shortcuts

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