lazarus/platform/scene.go

26 lines
363 B
Go
Raw Normal View History

2019-01-01 00:52:53 +00:00
package platform
2019-01-01 01:10:45 +00:00
type Scene interface {
Name() string
}
2019-01-01 00:52:53 +00:00
type SceneCreator interface {
Create(window *Window) error
}
type SceneAdvancer interface {
Advance(window *Window) error
}
type SceneDestroyer interface {
Destroy(window *Window) error
}
2019-01-01 01:10:45 +00:00
func sceneName(scene Scene) string {
if scene == nil {
return "<nil>"
} else {
return scene.Name()
}
}