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

Method Init

graphic/lines.go:29–34  ·  view source on GitHub ↗

Init initializes the Lines object and adds the specified material.

(igeom geometry.IGeometry, imat material.IMaterial)

Source from the content-addressed store, hash-verified

27
28// Init initializes the Lines object and adds the specified material.
29func (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.
37func (l *Lines) RenderSetup(gs *gls.GLS, rinfo *core.RenderInfo) {

Callers 1

NewLinesFunction · 0.45

Calls 1

AddMaterialMethod · 0.45

Tested by

no test coverage detected