timing

package
v0.0.0-...-53be003 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FRAME_RATE int = 48

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameRateController

type FrameRateController interface {
	WaitFrameRate()
	WaitMillis(millis uint32)
}

type SdlFramerateController

type SdlFramerateController int

func NewSdlFrameRateController

func NewSdlFrameRateController(framesPerSecond int) SdlFramerateController

func (SdlFramerateController) WaitFrameRate

func (frameRate SdlFramerateController) WaitFrameRate()

func (SdlFramerateController) WaitMillis

func (frameRate SdlFramerateController) WaitMillis(millis uint32)

Jump to

Keyboard shortcuts

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