MCPcopy Index your code
hub / github.com/EngoEngine/engo / SetBackground

Function SetBackground

common/render.go:410–416  ·  view source on GitHub ↗

SetBackground sets the OpenGL ClearColor to the provided color.

(c color.Color)

Source from the content-addressed store, hash-verified

408
409// SetBackground sets the OpenGL ClearColor to the provided color.
410func SetBackground(c color.Color) {
411 if !engo.Headless() {
412 r, g, b, a := c.RGBA()
413
414 engo.Gl.ClearColor(float32(r)/0xffff, float32(g)/0xffff, float32(b)/0xffff, float32(a)/0xffff)
415 }
416}

Callers 15

SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92

Calls 1

HeadlessFunction · 0.92

Tested by

no test coverage detected