MCPcopy Index your code
hub / github.com/g3n/engine / SetAttributeName

Method SetAttributeName

geometry/geometry.go:195–201  ·  view source on GitHub ↗

SetAttributeName sets the name of the VBO attribute associated with the provided attribute type.

(atype gls.AttribType, attribName string)

Source from the content-addressed store, hash-verified

193
194// SetAttributeName sets the name of the VBO attribute associated with the provided attribute type.
195func (g *Geometry) SetAttributeName(atype gls.AttribType, attribName string) {
196
197 vbo := g.VBO(atype)
198 if vbo != nil {
199 vbo.Attrib(atype).Name = attribName
200 }
201}
202
203// AttributeName returns the name of the VBO attribute associated with the provided attribute type.
204func (g *Geometry) AttributeName(atype gls.AttribType) string {

Callers 1

Calls 2

VBOMethod · 0.95
AttribMethod · 0.80

Tested by

no test coverage detected