MCPcopy
hub / github.com/fogleman/nes / SetView

Method SetView

ui/director.go:36–45  ·  view source on GitHub ↗
(view View)

Source from the content-addressed store, hash-verified

34}
35
36func (d *Director) SetView(view View) {
37 if d.view != nil {
38 d.view.Exit()
39 }
40 d.view = view
41 if d.view != nil {
42 d.view.Enter()
43 }
44 d.timestamp = glfw.GetTime()
45}
46
47func (d *Director) Step() {
48 gl.Clear(gl.COLOR_BUFFER_BIT)

Callers 3

RunMethod · 0.95
PlayGameMethod · 0.95
ShowMenuMethod · 0.95

Calls 2

ExitMethod · 0.65
EnterMethod · 0.65

Tested by

no test coverage detected