Documentation ¶ Index ¶ func NewMesh(pool Pool, args Args) *mesh.Static type Args type CubeObject func New(pool Pool, args Args) *CubeObject type Mesh 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 Source Files ¶ View all Source files cube.go Click to show internal directories. Click to hide internal directories.