texture

package
v0.0.0-...-b8cd253 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TexturePath = flag.String("t", "texture.png", "texture file")
)

Functions

func LoadImage

func LoadImage(fname string) ([]uint8, image.Rectangle, error)

Types

type BlockTexture

type BlockTexture struct {
	Left, Right FaceTexture
	Up, Down    FaceTexture
	Front, Back FaceTexture
}

type FaceTexture

type FaceTexture [6][2]float32

Jump to

Keyboard shortcuts

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