Esempio 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)
}
Esempio n. 2
0
//	Deletes this vertex array object.
func (me *VertexArray) Dispose() {
	if me.GlHandle != 0 {
		gl.DeleteVertexArrays(1, &me.GlHandle)
		me.GlHandle = 0
	}
}