textures

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//TextureSize must be a power of two
	TextureSize  = 1024
	TextureBegin = 0
	TextureEnd   = TextureSize - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Texture

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

func (*Texture) Get

func (t *Texture) Get(x uint, y uint) int

type Textures

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

func NewTextures

func NewTextures(viewMode int) (*Textures, error)

func (*Textures) Get

func (t *Textures) Get(id string) *Texture

func (*Textures) GetViewMode

func (t *Textures) GetViewMode() int

Jump to

Keyboard shortcuts

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