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

Function setBufferValue

common/render_shaders.go:82–87  ·  view source on GitHub ↗
(buffer []float32, index int, value float32, changed *bool)

Source from the content-addressed store, hash-verified

80}
81
82func setBufferValue(buffer []float32, index int, value float32, changed *bool) {
83 if buffer[index] != value {
84 buffer[index] = value
85 *changed = true
86 }
87}
88
89// colorToFloat32 returns the float32 representation of the given color
90func colorToFloat32(c color.Color) float32 {

Callers 4

generateBufferContentMethod · 0.85
generateBufferContentMethod · 0.85
generateBufferContentMethod · 0.85
generateBufferContentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected