Dispose releases, if possible, OpenGL resources, C memory and VBOs associated with the base geometry and morph targets.
()
| 168 | // Dispose releases, if possible, OpenGL resources, C memory |
| 169 | // and VBOs associated with the base geometry and morph targets. |
| 170 | func (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. |
| 179 | func (mg *MorphGeometry) UpdateTargetAttributes(morphTargets []*Geometry) { |