From dbd1b50ff756999600aae5b7e0bd809b2b598ab6 Mon Sep 17 00:00:00 2001 From: surdeus Date: Fri, 17 Feb 2023 09:04:47 +0500 Subject: [PATCH] ... --- "src/gx/\\" | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 "src/gx/\\" diff --git "a/src/gx/\\" "b/src/gx/\\" deleted file mode 100644 index fbd9a17..0000000 --- "a/src/gx/\\" +++ /dev/null @@ -1,44 +0,0 @@ -package gx - -import ( - "github.com/hajimehoshi/ebiten/v2" -) - -type WindowConfig struct { - Title string - Width, Height int -} - -type Engine struct { - wcfg *WindowConfig -} - -type engine Engine - -func New( - title string, - w, h int, -) *Engine { - e := &Engine{ - } - -} - -func (e *engine) Update() error { - return nil -} - -func (e *engine) Draw(s *ebiten.Image) { -} - -func (e *engine) Layout(ow, oh int) (int, int) { - return e.wcfg.Width, e.wcfg.Height -} - -func (e *Engine) Run() error { - ebiten.SetWindowTitle(e.wcfg.Title) - ebiten.SetWindowSize(e.wcfg.Width, e.wcfg.Height) - - return ebiten.RunGame(engine(e)) -} -