|
HoverRace
2.0
|
Abstraction for loading resources. More...
#include <ResBundle.h>
Inheritance diagram for HoverRace::Parcel::ResBundle:Public Member Functions | |
| ResBundle (const Util::OS::path_t &dir, std::shared_ptr< ResBundle > subBundle=std::shared_ptr< ResBundle >()) | |
| virtual | ~ResBundle () |
| void | FreeResources () |
| Unload all loaded resources. More... | |
| ObjFacTools::ResourceLib & | GetResourceLib () const |
Public Member Functions inherited from HoverRace::Parcel::Bundle | |
| Bundle (const Util::OS::path_t &dir, std::shared_ptr< Bundle > subBundle=std::shared_ptr< Bundle >()) | |
| Constructor. More... | |
| virtual | ~Bundle () |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| iterator | end () |
| const_iterator | end () const |
| virtual std::shared_ptr< RecordFile > | OpenParcel (const std::string &name, bool writing=false) const |
| Open an existing parcel. More... | |
Private Types | |
| using | SUPER = Bundle |
Private Attributes | |
| std::unique_ptr< ObjFacTools::ResourceLib > | resourceLib |
Additional Inherited Members | |
Public Types inherited from HoverRace::Parcel::Bundle | |
| using | const_iterator = Iterator |
| using | iterator = Iterator |
| using | value_type = Util::OS::dirEnt_t |
Abstraction for loading resources.
|
private |
| HoverRace::Parcel::ResBundle::ResBundle | ( | const Util::OS::path_t & | dir, |
| std::shared_ptr< ResBundle > | subBundle = std::shared_ptr<ResBundle>() |
||
| ) |
|
virtual |
| void HoverRace::Parcel::ResBundle::FreeResources | ( | ) |
Unload all loaded resources.
This should be performed on exit (before the subsystems shut down), and whenever it would be beneficial to free memory to load new resources.
| ObjFacTools::ResourceLib & HoverRace::Parcel::ResBundle::GetResourceLib | ( | ) | const |
|
mutableprivate |
1.8.11