platform

package
v0.0.0-...-07f2a93 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SDL

type SDL struct {
	// contains filtered or unexported fields
}

func InitSDL

func InitSDL(windowSize, resolution image.Point, fullscreen bool) (*SDL, error)

func (*SDL) PollEvent

func (*SDL) PollEvent() sys.Event

func (*SDL) Present

func (s *SDL) Present(img image.Image) error

func (*SDL) Quit

func (s *SDL) Quit()

func (*SDL) Resolution

func (s *SDL) Resolution() image.Point

func (*SDL) ToggleFullscreen

func (s *SDL) ToggleFullscreen() (bool, error)

Jump to

Keyboard shortcuts

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