MCPcopy
hub / github.com/EngoEngine/engo / Preload

Method Preload

demos/textbox/textbox.go:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (*DefaultScene) Preload() {
23 err := engo.Files.Load("Roboto-Regular.ttf")
24 if err != nil {
25 panic(err)
26 }
27 engo.Input.RegisterButton("backspace", engo.KeyBackspace)
28 engo.Input.RegisterButton("enter", engo.KeyEnter)
29}
30
31// Setup is called before the main loop is started
32func (*DefaultScene) Setup(u engo.Updater) {

Callers

nothing calls this directly

Calls 2

RegisterButtonMethod · 0.80
LoadMethod · 0.65

Tested by

no test coverage detected