VBO returns a pointer to this geometry's VBO which contain the specified attribute. Returns nil if the VBO is not found.
(atype gls.AttribType)
| 149 | // VBO returns a pointer to this geometry's VBO which contain the specified attribute. |
| 150 | // Returns nil if the VBO is not found. |
| 151 | func (g *Geometry) VBO(atype gls.AttribType) *gls.VBO { |
| 152 | |
| 153 | for _, vbo := range g.vbos { |
| 154 | if vbo.Attrib(atype) != nil { |
| 155 | return vbo |
| 156 | } |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
| 161 | // VBOName returns a pointer to this geometry's VBO which contain the specified attribute. |
| 162 | // Returns nil if the VBO is not found. |
no test coverage detected