Example #1
0
func DeinitFont() {
	gl.DeleteLists(oFontBase, 32+96*4)
	gl.DeleteLists(oFontBackground, 1)
}
Example #2
0
File: font.go Project: go-gl/gltext
// Release releases font resources.
// A font can no longer be used for rendering after this call completes.
func (f *Font) Release() {
	gl.DeleteTextures(1, &f.texture)
	gl.DeleteLists(f.listbase, int32(len(f.config.Glyphs)))
	f.config = nil
}