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

Method Step

ui/director.go:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (d *Director) Step() {
48 gl.Clear(gl.COLOR_BUFFER_BIT)
49 timestamp := glfw.GetTime()
50 dt := timestamp - d.timestamp
51 d.timestamp = timestamp
52 if d.view != nil {
53 d.view.Update(timestamp, dt)
54 }
55}
56
57func (d *Director) Start(paths []string) {
58 d.menuView = NewMenuView(d, paths)

Callers 1

RunMethod · 0.95

Calls 1

UpdateMethod · 0.65

Tested by

no test coverage detected