utils

package
v0.0.0-...-542943e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexVBOSlow

func IndexVBOSlow(vertices []glm.Vec3, uvs []glm.Vec2, normals []glm.Vec3) (outIndices []uint16, outVertices []glm.Vec3, outUVs []glm.Vec2, outNorms []glm.Vec3)

IndexVBOSlow builds the index of the given attributes.

Types

type MeshObject

type MeshObject struct {
	Vertices []glm.Vec3
	UVs      []glm.Vec2
	Normals  []glm.Vec3
}

MeshObject is a VUN mesh

func LoadObject

func LoadObject(fname string, invertV bool) *MeshObject

LoadObject loads the wavefront object in the given file.

Jump to

Keyboard shortcuts

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