C4 Engine
C4 Engine API Documentation

class AutoReleaseFont

Defined in:  C4Slug.h
A helper class that wraps a pointer to a Font object.
Definition

class AutoReleaseFont : public AutoRelease<Font>

Constructor

AutoReleaseFont(const char *name);

Parameters
name The name of the font resource.
Description
The AutoReleaseFont class is a helper class that wraps a pointer to a Font object. When an AutoReleaseFont is constructed, it calls the Font::GetFont function to obtain a pointer to the font specified by the name parameter. It then wraps that pointer in an AutoRelease object. When an AutoReleaseFont object goes out of scope, it automatically releases the font object that it wraps.
Base Classes
AutoRelease<Font> Font objects are reference counted.
See Also

Font::GetFont