18 #ifndef __H__OCULAR_RESOURCES_RESOURCE_SAVER_REGISTRAR__H__
19 #define __H__OCULAR_RESOURCES_RESOURCE_SAVER_REGISTRAR__H__
21 #include "Resource.hpp"
22 #include "OcularEngine.hpp"
56 std::shared_ptr<AResourceSaver> shared(saver);
57 OcularEngine.ResourceManager()->registerResourceSaver(shared);
79 #define OCULAR_REGISTER_RESOURCE_SAVER(T) Ocular::Core::ResourceSaverRegistrar<T> OCULAR_INTERNAL_RegisterResourceSaver;
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: ResourceSaverRegistrar.hpp:45
Definition: ResourceSaver.hpp:49