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

Method VBO

geometry/geometry.go:151–159  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

149// VBO returns a pointer to this geometry's VBO which contain the specified attribute.
150// Returns nil if the VBO is not found.
151func (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.

Callers 12

SetAttributeNameMethod · 0.95
AttributeNameMethod · 0.95
OperateOnVerticesMethod · 0.95
ReadVerticesMethod · 0.95
ReadVertexNormalsMethod · 0.95
ReadFacesMethod · 0.95
AddMorphTargetsMethod · 0.80
RaycastSpriteMethod · 0.80
lineRaycastFunction · 0.80
NewNormalsFunction · 0.80
UpdateMethod · 0.80

Calls 1

AttribMethod · 0.80

Tested by

no test coverage detected