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
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build android ios
|
|
||||||
|
|
||||||
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
|
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
|
||||||
//
|
//
|
||||||
// The functions are not intended for public usages.
|
// The functions are not intended for public usages.
|
||||||
|
@ -12,15 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build android ios
|
|
||||||
|
|
||||||
package ebitenmobileview
|
package ebitenmobileview
|
||||||
|
|
||||||
// #cgo ios LDFLAGS: -framework UIKit -framework GLKit -framework QuartzCore -framework OpenGLES
|
|
||||||
//
|
|
||||||
// #include <stdint.h>
|
|
||||||
import "C"
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
@ -16,6 +16,11 @@
|
|||||||
|
|
||||||
package ebitenmobileview
|
package ebitenmobileview
|
||||||
|
|
||||||
|
// #cgo ios LDFLAGS: -framework UIKit -framework GLKit -framework QuartzCore -framework OpenGLES
|
||||||
|
//
|
||||||
|
// #include <stdint.h>
|
||||||
|
import "C"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
@ -12,8 +12,27 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
|
// +build !android
|
||||||
//
|
// +build !ios
|
||||||
// The functions are not intended for public usages.
|
|
||||||
// There is no guarantee of backward compatibility.
|
|
||||||
package ebitenmobileview
|
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