processing

package
v0.0.0-...-3257b51 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyFlightLoop

func DestroyFlightLoop(flightLoopId FlightLoopId)

func GetCycleNumber

func GetCycleNumber() int

func GetElapsedTime

func GetElapsedTime() float32

func RegisterFlightLoopCallback

func RegisterFlightLoopCallback(flightLoop FlightLoopFunc, interval float32, ref interface{})

func ScheduleFlightLoop

func ScheduleFlightLoop(flightLoopId FlightLoopId, interval float32, relativeToNow bool)

func SetFlightLoopCallbackInterval

func SetFlightLoopCallbackInterval(flightLoop FlightLoopFunc, interval float32, relativeToNow bool, ref interface{})

func UnregisterFlightLoopCallback

func UnregisterFlightLoopCallback(flightLoop FlightLoopFunc, ref interface{})

Types

type CreateFlightLoopData

type CreateFlightLoopData struct {
	Phase    FlightLoopPhaseType
	Callback FlightLoopFunc
	Ref      interface{}
}

type FlightLoopFunc

type FlightLoopFunc func(elapsedSinceLastCall, elapsedTimeSinceLastFlightLoop float32, counter int, ref interface{}) float32

type FlightLoopId

type FlightLoopId unsafe.Pointer

func CreateFlightLoop

func CreateFlightLoop(data *CreateFlightLoopData) FlightLoopId

type FlightLoopPhaseType

type FlightLoopPhaseType int
const (
	FlightLoop_Phase_BeforeFlightModel FlightLoopPhaseType = 0
	FlightLoop_Phase_AfterFlightModel  FlightLoopPhaseType = 1
)

Jump to

Keyboard shortcuts

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