Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Atlas ¶
type Atlas struct {
// contains filtered or unexported fields
}
func ParseAtlas ¶
func (*Atlas) GetAnimClip ¶ added in v0.3.0
func (a *Atlas) GetAnimClip(name string) core.AnimationClip
func (*Atlas) GetAnimClips ¶ added in v0.3.0
func (*Atlas) GetAnimation ¶ added in v0.3.0
func (*Atlas) GetAnimations ¶ added in v0.3.0
func (*Atlas) GetSubImage ¶ added in v0.3.0
func (*Atlas) GetSubImages ¶ added in v0.3.0
type ClipG ¶ added in v0.3.0
type ClipG struct {
Name string
AnimClip core.AnimationClip
}
type Container ¶
type Container interface {
Len() int64
FS() Filesystem
Load(name string) chan struct{}
Unload(name string) (bool, error)
LoadAll(names []string) (progress chan float64, done chan struct{})
UnloadAll()
Get(name string) ([]byte, error)
GetImage(name string) (image.Image, error)
GetAtlas(name string) (*Atlas, error)
}
func NewContainer ¶
func NewContainer(ctx context.Context, fs Filesystem) Container
type Filesystem ¶
Filesystem interface
Click to show internal directories.
Click to hide internal directories.