branan/gltext — Issue #3: No way to destroy a Font object
Author: halsafar
Created: 2012-02-14 05:32:59+00:00
State: open

It appears there is absolutely no way to clean up a font. The way you load fonts prevents us from using 'new' and you don't provide a destroy() method.

For graphics object oriented programming I advise you to NEVER use constructors or destructors. Instead expect the user to call an init() and destroy() method. It seems like an anti-pattern but it is one that many companies embrace, including Google.
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Doing_Work_in_Constructors