MCPcopy Index your code
hub / github.com/fogleman/nes / drawSelection

Function drawSelection

ui/menuview.go:241–250  ·  view source on GitHub ↗
(x, y, p, w float32)

Source from the content-addressed store, hash-verified

239}
240
241func drawSelection(x, y, p, w float32) {
242 gl.LineWidth(w)
243 gl.Begin(gl.LINE_STRIP)
244 gl.Vertex2f(x-p, y-p)
245 gl.Vertex2f(x+256+p, y-p)
246 gl.Vertex2f(x+256+p, y+240+p)
247 gl.Vertex2f(x-p, y+240+p)
248 gl.Vertex2f(x-p, y-p)
249 gl.End()
250}

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected