sprite: move to exp/sprite.
Change-Id: Idfdc0c192d7e6d50e1063b2eb582bbe05294643a Reviewed-on: https://go-review.googlesource.com/11230 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
df4a6521ad
commit
c0c696a96d
|
@ -15,7 +15,7 @@ documentation serves as a starting point:
|
|||
|
||||
- [mobile/app](http://godoc.org/golang.org/x/mobile/app)
|
||||
- [mobile/gl](http://godoc.org/golang.org/x/mobile/gl)
|
||||
- [mobile/sprite](http://godoc.org/golang.org/x/mobile/sprite)
|
||||
- [mobile/exp/sprite](http://godoc.org/golang.org/x/mobile/exp/sprite)
|
||||
- [mobile/audio](http://godoc.org/golang.org/x/mobile/audio)
|
||||
- [mobile/sensor](http://godoc.org/golang.org/x/mobile/sensor)
|
||||
- [mobile/cmd/gomobile](http://godoc.org/golang.org/x/mobile/cmd/gomobile)
|
||||
|
|
|
@ -40,12 +40,12 @@ import (
|
|||
"golang.org/x/mobile/app"
|
||||
"golang.org/x/mobile/app/debug"
|
||||
"golang.org/x/mobile/audio"
|
||||
"golang.org/x/mobile/exp/sprite"
|
||||
"golang.org/x/mobile/exp/sprite/clock"
|
||||
"golang.org/x/mobile/exp/sprite/glsprite"
|
||||
"golang.org/x/mobile/f32"
|
||||
"golang.org/x/mobile/geom"
|
||||
"golang.org/x/mobile/gl"
|
||||
"golang.org/x/mobile/sprite"
|
||||
"golang.org/x/mobile/sprite/clock"
|
||||
"golang.org/x/mobile/sprite/glsprite"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -37,11 +37,11 @@ import (
|
|||
"golang.org/x/mobile/app"
|
||||
"golang.org/x/mobile/app/debug"
|
||||
"golang.org/x/mobile/event"
|
||||
"golang.org/x/mobile/exp/sprite"
|
||||
"golang.org/x/mobile/exp/sprite/clock"
|
||||
"golang.org/x/mobile/exp/sprite/glsprite"
|
||||
"golang.org/x/mobile/f32"
|
||||
"golang.org/x/mobile/gl"
|
||||
"golang.org/x/mobile/sprite"
|
||||
"golang.org/x/mobile/sprite/clock"
|
||||
"golang.org/x/mobile/sprite/glsprite"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package clock provides a clock and time functions for a sprite engine.
|
||||
package clock // import "golang.org/x/mobile/sprite/clock"
|
||||
package clock // import "golang.org/x/mobile/exp/sprite/clock"
|
||||
|
||||
// A Time represents an instant in sprite time.
|
||||
//
|
|
@ -6,17 +6,17 @@
|
|||
//
|
||||
// Each sprite.Texture is loaded as a GL texture object and drawn
|
||||
// to the screen via an affine transform done in a simple shader.
|
||||
package glsprite // import "golang.org/x/mobile/sprite/glsprite"
|
||||
package glsprite // import "golang.org/x/mobile/exp/sprite/glsprite"
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/draw"
|
||||
|
||||
"golang.org/x/mobile/exp/sprite"
|
||||
"golang.org/x/mobile/exp/sprite/clock"
|
||||
"golang.org/x/mobile/f32"
|
||||
"golang.org/x/mobile/geom"
|
||||
"golang.org/x/mobile/gl/glutil"
|
||||
"golang.org/x/mobile/sprite"
|
||||
"golang.org/x/mobile/sprite/clock"
|
||||
)
|
||||
|
||||
type node struct {
|
|
@ -7,16 +7,16 @@
|
|||
// It is intended to serve as a reference implementation for testing
|
||||
// other sprite Engines written against OpenGL, or other more exotic
|
||||
// modern hardware interfaces.
|
||||
package portable // import "golang.org/x/mobile/sprite/portable"
|
||||
package portable // import "golang.org/x/mobile/exp/sprite/portable"
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/draw"
|
||||
|
||||
"golang.org/x/mobile/exp/sprite"
|
||||
"golang.org/x/mobile/exp/sprite/clock"
|
||||
"golang.org/x/mobile/f32"
|
||||
"golang.org/x/mobile/geom"
|
||||
"golang.org/x/mobile/sprite"
|
||||
"golang.org/x/mobile/sprite/clock"
|
||||
)
|
||||
|
||||
// Engine builds a sprite Engine that renders onto dst.
|
|
@ -7,7 +7,7 @@
|
|||
// A tree of nodes is drawn by a rendering Engine, provided by another
|
||||
// package. The OS-independent Go version based on the image package is:
|
||||
//
|
||||
// golang.org/x/mobile/sprite/portable
|
||||
// golang.org/x/mobile/exp/sprite/portable
|
||||
//
|
||||
// An Engine draws a screen starting at a root Node. The tree is walked
|
||||
// depth-first, with affine transformations applied at each level.
|
||||
|
@ -22,14 +22,14 @@
|
|||
// modify the scene's nodes and animations (Arranger values)
|
||||
// e.Render(scene, t)
|
||||
// }
|
||||
package sprite // import "golang.org/x/mobile/sprite"
|
||||
package sprite // import "golang.org/x/mobile/exp/sprite"
|
||||
|
||||
import (
|
||||
"image"
|
||||
"image/draw"
|
||||
|
||||
"golang.org/x/mobile/exp/sprite/clock"
|
||||
"golang.org/x/mobile/f32"
|
||||
"golang.org/x/mobile/sprite/clock"
|
||||
)
|
||||
|
||||
type Arranger interface {
|
Loading…
Reference in New Issue