AttributeName returns the name of the VBO attribute associated with the provided attribute type.
(atype gls.AttribType)
| 202 | |
| 203 | // AttributeName returns the name of the VBO attribute associated with the provided attribute type. |
| 204 | func (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. |