Documentation ¶
Overview ¶
Package gamekit is a group of utilities for building games in golang
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CountHistogram ¶
CountHistogram renders a time series of data points
func (*CountHistogram) Render ¶
func (c *CountHistogram) Render(r *sdl.Renderer)
Render draws the histogram to the SDL renderer
type Window ¶
type Window struct { ID uint32 Size *pair.RxInt32Pair Window *sdl.Window Renderer *sdl.Renderer Mouse *Mouse // contains filtered or unexported fields }
Window represents a managed window
type WindowManager ¶
type WindowManager struct { WindowCount *rx.Uint32 CurrentWindowID *rx.Uint32 // contains filtered or unexported fields }
The WindowManager is responsible for handling a group of windows with different event handlers
func NewWindowManager ¶
func NewWindowManager() *WindowManager
NewWindowManager builds a new window manager
func (*WindowManager) Destroy ¶
func (wm *WindowManager) Destroy(id uint32)
Destroy destroys the window
func (*WindowManager) DispatchEvents ¶
func (wm *WindowManager) DispatchEvents()
DispatchEvents handles events and sends them to the required window event handlers.
func (*WindowManager) SetHandler ¶
func (wm *WindowManager) SetHandler(id uint32, h func(e sdl.Event))
SetHandler sets the event handler for the given window id
Directories ¶
Path | Synopsis |
---|---|
_examples
|
|
Package gfx2 is the 2D graphics abstraction library
|
Package gfx2 is the 2D graphics abstraction library |
Package loop provides game loop implementations
|
Package loop provides game loop implementations |
Package pair defines pair/tuple types
|
Package pair defines pair/tuple types |
Package ui provides some simple user interface objects
|
Package ui provides some simple user interface objects |
Click to show internal directories.
Click to hide internal directories.