MCPcopy Create free account
hub / github.com/EngoEngine/engo / Exit

Function Exit

engo.go:267–271  ·  view source on GitHub ↗

Exit is the safest way to close your game, as `engo` will correctly attempt to close all windows, handlers and contexts

()

Source from the content-addressed store, hash-verified

265
266// Exit is the safest way to close your game, as `engo` will correctly attempt to close all windows, handlers and contexts
267func Exit() {
268 closeGameOnce.Do(func() {
269 close(closeGame)
270 })
271}
272
273// GameWidth returns the current game width
274func GameWidth() float32 {

Callers 6

ExitMethod · 0.92
UpdateMethod · 0.85
closeEventFunction · 0.85
CreateWindowFunction · 0.85
CreateWindowFunction · 0.85
RunIterationFunction · 0.85

Calls

no outgoing calls

Tested by 1

UpdateMethod · 0.68