RenderSetup is called by the engine before drawing this geometry.
(gs *gls.GLS, rinfo *core.RenderInfo)
| 35 | |
| 36 | // RenderSetup is called by the engine before drawing this geometry. |
| 37 | func (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 | } |
nothing calls this directly
no test coverage detected