loaders

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

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

Go to latest
Published: Dec 10, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextLoader

type TextLoader struct {
}

func NewTextLoader

func NewTextLoader() *TextLoader

func (*TextLoader) Load

func (l *TextLoader) Load(mapping *TextMapping, scale float32, grid string) (geometry *render.Geometry, err error)

type TextMapping

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

func NewTextMapping

func NewTextMapping(sheet *sprites.Sheet, defaultSprite string) (out *TextMapping, err error)

func (*TextMapping) Get

func (m *TextMapping) Get(r rune) (index int)

func (*TextMapping) Set

func (m *TextMapping) Set(r rune, key string) (err error)

type TexturePackerLoader

type TexturePackerLoader struct {
}

func NewTexturePackerLoader

func NewTexturePackerLoader() *TexturePackerLoader

func (*TexturePackerLoader) Load

func (l *TexturePackerLoader) Load(jsonPath string, smoothing core.TextureSmoothing) (sheet *sprites.Sheet, err error)

Jump to

Keyboard shortcuts

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