Init initializes the Lines object and adds the specified material.
(igeom geometry.IGeometry, imat material.IMaterial)
| 27 | |
| 28 | // Init initializes the Lines object and adds the specified material. |
| 29 | func (l *Lines) Init(igeom geometry.IGeometry, imat material.IMaterial) { |
| 30 | |
| 31 | l.Graphic.Init(l, igeom, gls.LINES) |
| 32 | l.AddMaterial(l, imat, 0, 0) |
| 33 | l.uniMVPm.Init("MVP") |
| 34 | } |
| 35 | |
| 36 | // RenderSetup is called by the engine before drawing this geometry. |
| 37 | func (l *Lines) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo) { |