diff --git a/platform/scene.go b/platform/scene.go deleted file mode 100644 index fe9e4cc..0000000 --- a/platform/scene.go +++ /dev/null @@ -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 -} diff --git a/platform/window.go b/platform/window.go index 7fd13ae..9d26b4a 100644 --- a/platform/window.go +++ b/platform/window.go @@ -16,6 +16,22 @@ var ( 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 { sdlWindow *sdl.Window sdlGlContext sdl.GLContext