Пример #1
0
func DeinitFont() {
	gl.DeleteLists(oFontBase, 32+96*4)
	gl.DeleteLists(oFontBackground, 1)
}
Пример #2
0
// 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
}