mobile/ebitenmobileview: Fix build errors

This commit is contained in:
Hajime Hoshi 2019-09-18 11:01:58 +09:00
parent b8afa2f9c6
commit d2d21b3a01
4 changed files with 28 additions and 13 deletions

View File

@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build android ios
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
//
// The functions are not intended for public usages.

View File

@ -12,15 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build android ios
package ebitenmobileview
// #cgo ios LDFLAGS: -framework UIKit -framework GLKit -framework QuartzCore -framework OpenGLES
//
// #include <stdint.h>
import "C"
import (
"sync"

View File

@ -16,6 +16,11 @@
package ebitenmobileview
// #cgo ios LDFLAGS: -framework UIKit -framework GLKit -framework QuartzCore -framework OpenGLES
//
// #include <stdint.h>
import "C"
import (
"errors"

View File

@ -12,8 +12,27 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
//
// The functions are not intended for public usages.
// There is no guarantee of backward compatibility.
// +build !android
// +build !ios
package ebitenmobileview
import (
"github.com/hajimehoshi/ebiten"
)
func update() error {
return nil
}
func start(f func(*ebiten.Image) error, width, height int, scale float64) {
}
func setScreenSize(width, height int, scale float64) {
}
func updateTouchesOnAndroid(action int, id int, x, y int) {
}
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
}