2016-05-18 20:17:50 +02:00
|
|
|
// Copyright 2016 Hajime Hoshi
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
// +build android
|
|
|
|
|
|
|
|
package ui
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hajimehoshi/ebiten/internal/graphics/opengl"
|
|
|
|
)
|
|
|
|
|
|
|
|
func initialize() (*opengl.Context, error) {
|
|
|
|
// TODO: Implement
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func Main() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
type userInterface struct {
|
2016-05-18 20:17:50 +02:00
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func CurrentUI() UserInterface {
|
2016-05-18 20:17:50 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) Start(width, height, scale int, title string) error {
|
2016-05-18 20:17:50 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) Terminate() error {
|
2016-05-18 20:17:50 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) Update() (interface{}, error) {
|
2016-05-18 20:17:50 +02:00
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) SwapBuffers() error {
|
2016-05-18 20:17:50 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) SetScreenSize(width, height int) bool {
|
2016-05-18 20:17:50 +02:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) SetScreenScale(scale int) bool {
|
2016-05-18 20:17:50 +02:00
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2016-05-19 17:07:04 +02:00
|
|
|
func (u *userInterface) ScreenScale() int {
|
2016-05-18 20:17:50 +02:00
|
|
|
return 1
|
|
|
|
}
|