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

Method AttributeName

geometry/geometry.go:204–207  ·  view source on GitHub ↗

AttributeName returns the name of the VBO attribute associated with the provided attribute type.

(atype gls.AttribType)

Source from the content-addressed store, hash-verified

202
203// AttributeName returns the name of the VBO attribute associated with the provided attribute type.
204func (g *Geometry) AttributeName(atype gls.AttribType) string {
205
206 return g.VBO(atype).Attrib(atype).Name
207}
208
209// OperateOnVertices iterates over all the vertices and calls
210// the specified callback function with a pointer to each vertex.

Callers

nothing calls this directly

Calls 2

VBOMethod · 0.95
AttribMethod · 0.80

Tested by

no test coverage detected