func deleteGeometry() { gl.DeleteBuffers(1, &faceTri.glVertBuf) gl.DeleteBuffers(1, &faceQuad.glVertBuf) gl.DeleteVertexArrays(1, &faceTri.glVao) gl.DeleteVertexArrays(1, &faceQuad.glVao) }
// Deletes this buffer object. func (me *Buffer) Dispose() { if me.GlHandle != 0 { gl.DeleteBuffers(1, &me.GlHandle) me.GlHandle = 0 } }