window

package
v0.0.0-...-d4a0833 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	engine.Manager

	Name string
	// contains filtered or unexported fields
}

Manager is responsible for managing this games window. Understand that there is a distinction between the window and the renderer. This manager provides a window that a rendering context can be obtained from, and device input handling.

func NewWindowManager

func NewWindowManager(win *tinygametools.Window) *Manager

NewWindowManager

func (*Manager) PostUpdate

func (manager *Manager) PostUpdate()

PostUpdate is called at the end of an update loop. In this case it simply SwapBuffers the window, (to display updated window contents)

func (*Manager) Register

func (manager *Manager) Register()

Register will create a new Window

func (*Manager) Unregister

func (manager *Manager) Unregister()

Unregister will end input listening and kill any window

func (*Manager) Update

func (manager *Manager) Update(dt float64)

Update simply calls the input manager that uses this window

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL