Game Development Reference
In-Depth Information
AssetManager 3.0
Adding an entry for the Font class to our existing code will not look much different from
the other two resources— Texture and SoundBuffer . We first need to add std::map
and then a single method, which loads and caches the resource. This is what our header file
looks like after we add the map and the method:
We are essentially following the same format as we did with the Texture and
SoundBuffer resources. AssetManager::GetFont() doesn't look too different
Search WWH ::

Custom Search