shape

package
v0.0.0-...-d216d2d Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

Block is the struct for displaying a colored block

func NewBlock

func NewBlock() (*Block, error)

New creates and returns a new Block object

func (*Block) Destroy

func (block *Block) Destroy()

Destroy frees up the vertex array

func (*Block) Draw

func (block *Block) Draw(params BlockParams)

Draw will draw the block

type BlockParams

type BlockParams struct {
	X, Y, Z                         float32
	RotationX, RotationY, RotationZ float32
	Width, Height                   float32
	R, G, B, A                      float32
}

Jump to

Keyboard shortcuts

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