mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 22:45:54 -04:00
f32: move to exp/f32.
In the long term, a lot of this package should be removed in favor of the golang.org/x/image/math/f32 package. The latter is the common location for matrix types shared across graphics libraries. For example, the golang.org/x/image/draw package refers to golang.org/x/image/math/f64. Change-Id: I9d7ccd3cb35912e0d9dc5bd46c919516ea840340 Reviewed-on: https://go-review.googlesource.com/11856 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
@ -42,10 +42,10 @@ import (
|
|||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
"golang.org/x/mobile/exp/app/debug"
|
"golang.org/x/mobile/exp/app/debug"
|
||||||
"golang.org/x/mobile/exp/audio"
|
"golang.org/x/mobile/exp/audio"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/sprite"
|
"golang.org/x/mobile/exp/sprite"
|
||||||
"golang.org/x/mobile/exp/sprite/clock"
|
"golang.org/x/mobile/exp/sprite/clock"
|
||||||
"golang.org/x/mobile/exp/sprite/glsprite"
|
"golang.org/x/mobile/exp/sprite/glsprite"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
"golang.org/x/mobile/gl"
|
"golang.org/x/mobile/gl"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ import (
|
|||||||
"golang.org/x/mobile/app"
|
"golang.org/x/mobile/app"
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
"golang.org/x/mobile/exp/app/debug"
|
"golang.org/x/mobile/exp/app/debug"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/gl/glutil"
|
"golang.org/x/mobile/exp/gl/glutil"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
"golang.org/x/mobile/geom"
|
"golang.org/x/mobile/geom"
|
||||||
"golang.org/x/mobile/gl"
|
"golang.org/x/mobile/gl"
|
||||||
)
|
)
|
||||||
|
@ -38,10 +38,10 @@ import (
|
|||||||
"golang.org/x/mobile/asset"
|
"golang.org/x/mobile/asset"
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
"golang.org/x/mobile/exp/app/debug"
|
"golang.org/x/mobile/exp/app/debug"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/sprite"
|
"golang.org/x/mobile/exp/sprite"
|
||||||
"golang.org/x/mobile/exp/sprite/clock"
|
"golang.org/x/mobile/exp/sprite/clock"
|
||||||
"golang.org/x/mobile/exp/sprite/glsprite"
|
"golang.org/x/mobile/exp/sprite/glsprite"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
"golang.org/x/mobile/gl"
|
"golang.org/x/mobile/gl"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
// The interface to this package is not stable. It will change considerably.
|
// The interface to this package is not stable. It will change considerably.
|
||||||
// Only use functions that provide package documentation. Semantics are
|
// Only use functions that provide package documentation. Semantics are
|
||||||
// non-obvious. Be prepared for the package name to change.
|
// non-obvious. Be prepared for the package name to change.
|
||||||
package f32 // import "golang.org/x/mobile/f32"
|
package f32 // import "golang.org/x/mobile/exp/f32"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
@ -14,7 +14,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
"golang.org/x/mobile/f32"
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/geom"
|
"golang.org/x/mobile/geom"
|
||||||
"golang.org/x/mobile/gl"
|
"golang.org/x/mobile/gl"
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ package glutil // import "golang.org/x/mobile/exp/gl/glutil"
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"golang.org/x/mobile/f32"
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/gl"
|
"golang.org/x/mobile/gl"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@ import (
|
|||||||
"image/draw"
|
"image/draw"
|
||||||
|
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/gl/glutil"
|
"golang.org/x/mobile/exp/gl/glutil"
|
||||||
"golang.org/x/mobile/exp/sprite"
|
"golang.org/x/mobile/exp/sprite"
|
||||||
"golang.org/x/mobile/exp/sprite/clock"
|
"golang.org/x/mobile/exp/sprite/clock"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
"golang.org/x/mobile/geom"
|
"golang.org/x/mobile/geom"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"image"
|
"image"
|
||||||
"image/draw"
|
"image/draw"
|
||||||
|
|
||||||
"golang.org/x/mobile/f32"
|
"golang.org/x/mobile/exp/f32"
|
||||||
)
|
)
|
||||||
|
|
||||||
// affine draws each pixel of dst using bilinear interpolation of the
|
// affine draws each pixel of dst using bilinear interpolation of the
|
||||||
|
@ -15,7 +15,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
"golang.org/x/mobile/f32"
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/geom"
|
"golang.org/x/mobile/geom"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ import (
|
|||||||
"image/draw"
|
"image/draw"
|
||||||
|
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/sprite"
|
"golang.org/x/mobile/exp/sprite"
|
||||||
"golang.org/x/mobile/exp/sprite/clock"
|
"golang.org/x/mobile/exp/sprite/clock"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Engine builds a sprite Engine that renders onto dst.
|
// Engine builds a sprite Engine that renders onto dst.
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"image/draw"
|
"image/draw"
|
||||||
|
|
||||||
"golang.org/x/mobile/event"
|
"golang.org/x/mobile/event"
|
||||||
|
"golang.org/x/mobile/exp/f32"
|
||||||
"golang.org/x/mobile/exp/sprite/clock"
|
"golang.org/x/mobile/exp/sprite/clock"
|
||||||
"golang.org/x/mobile/f32"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Arranger interface {
|
type Arranger interface {
|
||||||
|
Reference in New Issue
Block a user