remove another unneeded file, add contents to window

This commit is contained in:
Alex Yatskov 2019-01-08 18:49:39 -08:00
parent d271e2a0c2
commit 3ee908c191
2 changed files with 16 additions and 17 deletions

View File

@ -1,17 +0,0 @@
package platform
type Scene interface {
Name() string
}
type SceneCreator interface {
Create() error
}
type SceneAdvancer interface {
Advance() error
}
type SceneDestroyer interface {
Destroy() error
}

View File

@ -16,6 +16,22 @@ var (
ErrWindowNotExists = errors.New("no window has been created") ErrWindowNotExists = errors.New("no window has been created")
) )
type Scene interface {
Name() string
}
type SceneCreator interface {
Create() error
}
type SceneAdvancer interface {
Advance() error
}
type SceneDestroyer interface {
Destroy() error
}
var windowState struct { var windowState struct {
sdlWindow *sdl.Window sdlWindow *sdl.Window
sdlGlContext sdl.GLContext sdlGlContext sdl.GLContext