Skip to content

No way to destroy a Font object #3

@halsafar

Description

@halsafar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions