mesh

package
v0.0.0-...-ea655a8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToGob

func ToGob(m *Mesh, path string)

ToGob ...

Types

type Mesh

type Mesh struct {
	Indices   []uint32
	Positions []float32
	Colors    []float32
	Coords    []float32
	Normals   []float32
	Target    []int32
}

Mesh ...

func FromGob

func FromGob(path string) (m *Mesh)

FromGob ...

func NewCube

func NewCube() *Mesh

NewCube ...

func NewCubeMap

func NewCubeMap() *Mesh

NewCubeMap ...

func NewMesh

func NewMesh() *Mesh

NewMesh ...

func NewQuad

func NewQuad() *Mesh

NewQuad ...

func NewSphere

func NewSphere(radius float32, slices, stacks int) *Mesh

NewSphere ...

func (*Mesh) GenerateBoundingBoxMeshSolid

func (m *Mesh) GenerateBoundingBoxMeshSolid() *Mesh

GenerateBoundingBoxMeshSolid ...

func (*Mesh) GenerateBoundingBoxMeshWireframe

func (m *Mesh) GenerateBoundingBoxMeshWireframe() *Mesh

GenerateBoundingBoxMeshWireframe ...

func (*Mesh) MinMaxPositions

func (m *Mesh) MinMaxPositions() (min, max mgl32.Vec3)

MinMaxPositions ...

func (*Mesh) Rotate

func (m *Mesh) Rotate() *Mesh

Rotate ...

func (*Mesh) Scale

func (m *Mesh) Scale(f float32) *Mesh

Scale ...

func (*Mesh) ScaleXYZ

func (m *Mesh) ScaleXYZ(x, y, z float32) *Mesh

ScaleXYZ ...

Directories

Path Synopsis
dev

Jump to

Keyboard shortcuts

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