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

Method AddMaterial

graphic/mesh.go:59–62  ·  view source on GitHub ↗

AddMaterial adds a material for the specified subset of vertices.

(imat material.IMaterial, start, count int)

Source from the content-addressed store, hash-verified

57
58// AddMaterial adds a material for the specified subset of vertices.
59func (m *Mesh) AddMaterial(imat material.IMaterial, start, count int) {
60
61 m.Graphic.AddMaterial(m, imat, start, count)
62}
63
64// AddGroupMaterial adds a material for the specified geometry group.
65func (m *Mesh) AddGroupMaterial(imat material.IMaterial, gindex int) {

Callers 7

InitMethod · 0.95
NewLineStripFunction · 0.45
NewSpriteFunction · 0.45
SetMaterialMethod · 0.45
InitMethod · 0.45
NewPointsFunction · 0.45
InitializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected