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

Method Dispose

geometry/morph.go:170–176  ·  view source on GitHub ↗

Dispose releases, if possible, OpenGL resources, C memory and VBOs associated with the base geometry and morph targets.

()

Source from the content-addressed store, hash-verified

168// Dispose releases, if possible, OpenGL resources, C memory
169// and VBOs associated with the base geometry and morph targets.
170func (mg *MorphGeometry) Dispose() {
171
172 mg.baseGeometry.Dispose()
173 for i := range mg.targets {
174 mg.targets[i].Dispose()
175 }
176}
177
178// UpdateTargetAttributes updates the attribute names of the specified morph targets in order.
179func (mg *MorphGeometry) UpdateTargetAttributes(morphTargets []*Geometry) {

Callers

nothing calls this directly

Calls 1

DisposeMethod · 0.65

Tested by

no test coverage detected