screen

package
v0.0.0-...-cc30c68 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CANVAS_SCALE = 1

Variables

This section is empty.

Functions

func LimitFPS

func LimitFPS(fps int, loopContents func())

func NewCanvas

func NewCanvas(width float64, height float64) (canvas *pixelgl.Canvas)

func ScaleWindowToCanvas

func ScaleWindowToCanvas(win *pixelgl.Window, canvas *pixelgl.Canvas)

func ScreenBounds

func ScreenBounds() (width float64, height float64)

func ShowDebugFPS

func ShowDebugFPS(title string, window *pixelgl.Window)

Types

This section is empty.

Jump to

Keyboard shortcuts

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