SetAttributeName sets the name of the VBO attribute associated with the provided attribute type.
(atype gls.AttribType, attribName string)
| 193 | |
| 194 | // SetAttributeName sets the name of the VBO attribute associated with the provided attribute type. |
| 195 | func (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. |
| 204 | func (g *Geometry) AttributeName(atype gls.AttribType) string { |
no test coverage detected