MCPcopy
hub / github.com/g3n/engine / RenderSetup

Method RenderSetup

graphic/lines.go:37–43  ·  view source on GitHub ↗

RenderSetup is called by the engine before drawing this geometry.

(gs *gls.GLS, rinfo *core.RenderInfo)

Source from the content-addressed store, hash-verified

35
36// RenderSetup is called by the engine before drawing this geometry.
37func (l *Lines) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo) {
38
39 // Transfer model view projection matrix uniform
40 mvpm := l.ModelViewProjectionMatrix()
41 location := l.uniMVPm.Location(gs)
42 gs.UniformMatrix4fv(location, 1, false, &mvpm[0])
43}

Callers

nothing calls this directly

Calls 3

LocationMethod · 0.80
UniformMatrix4fvMethod · 0.45

Tested by

no test coverage detected