Example #1
0
func (f *Font) teardownTextRendering(texture gl.GLuint, initial *sdl.Surface, intermediarya *sdl.Surface, intermediary *sdl.Surface) (endw int, endh int) {

	//
	gl.Disable(gl.BLEND)

	/* Bad things happen if we delete the texture before it finishes */
	gl.Finish()

	/* return the deltas in the unused w,h part of the rect */
	endw = int(initial.W)
	endh = int(initial.H)

	/* Clean up */
	initial.Free()
	intermediarya.Free()
	intermediary.Free()
	gl.DeleteTextures(1, &texture)
	//
	return
}