loop

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentFPS

func CurrentFPS() float64

func IsRunning

func IsRunning() bool

func Run

func Run(g GraphicsContext, width, height int, scale float64, title string, fps int) (err error)

Types

type GraphicsContext

type GraphicsContext interface {
	SetSize(width, height int, scale float64) error
	UpdateAndDraw(context *opengl.Context, updateCount int) error
}

Jump to

Keyboard shortcuts

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