From 3ee908c191314ebe0acff119f0bcb92b9ed8ab33 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Tue, 8 Jan 2019 18:49:39 -0800 Subject: [PATCH] remove another unneeded file, add contents to window --- platform/scene.go | 17 ----------------- platform/window.go | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 17 deletions(-) delete mode 100644 platform/scene.go 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