cube

package
v0.0.0-...-8e5a076 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMesh

func NewMesh(pool Pool, args Args) *mesh.Static

NewMesh creates a vertex colored cube mesh with a given size

Types

type Args

type Args struct {
	Mat  *material.Def
	Size float32
}

type CubeObject

type CubeObject struct {
	Object
	Mesh *mesh.Static
}

func New

func New(pool Pool, args Args) *CubeObject

type Mesh

type Mesh struct {
	// these are actually dynamic meshes, but since they generate so quickly
	// it might not make sense to generate in the background
	*mesh.Static
}

Mesh is a vertex colored cube mesh

Jump to

Keyboard shortcuts

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