mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
mobile/ebitenmobileview: Fix build errors
This commit is contained in:
parent
b8afa2f9c6
commit
d2d21b3a01
@ -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.
|
||||
|
@ -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"
|
||||
|
||||
|
@ -16,6 +16,11 @@
|
||||
|
||||
package ebitenmobileview
|
||||
|
||||
// #cgo ios LDFLAGS: -framework UIKit -framework GLKit -framework QuartzCore -framework OpenGLES
|
||||
//
|
||||
// #include <stdint.h>
|
||||
import "C"
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
@ -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) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user