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