Versions in this module Expand all Collapse all v0 v0.12.3 Jan 19, 2022 Changes in this version + type Window struct + Backend *goglbackend.GoGLBackend + Event func(event sdl.Event) + GLContext sdl.GLContext + KeyChar func(rn rune) + KeyDown func(scancode int, rn rune, name string) + KeyUp func(scancode int, rn rune, name string) + MouseDown func(button, x, y int) + MouseMove func(x, y int) + MouseUp func(button, x, y int) + MouseWheel func(x, y int) + SizeChange func(w, h int) + Window *sdl.Window + WindowID uint32 + func CreateWindow(w, h int, title string) (*Window, *canvas.Canvas, error) + func (wnd *Window) Close() + func (wnd *Window) Destroy() + func (wnd *Window) FPS() float32 + func (wnd *Window) FinishFrame() + func (wnd *Window) FramebufferSize() (int, int) + func (wnd *Window) MainLoop(run func()) + func (wnd *Window) Size() (int, int) + func (wnd *Window) StartFrame() error