Fixed compilation times by refactoring: WResourceManager.h gets included either directly or indirectly into every header & cpp file; so does its includes & implementation details. Broke out WResourceManager into a pure virtual class that contains only the required calls, and added a WResourceManagerImpl header that contains all the dirty details that the rest of the app doesn't care about / need to know.
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
class WResource
|
||||
{
|
||||
public:
|
||||
friend class WResourceManager;
|
||||
friend class ResourceManagerImpl;
|
||||
friend struct WCacheSort;
|
||||
template<class cacheItem, class cacheActual> friend class WCache;
|
||||
|
||||
@@ -39,7 +39,7 @@ protected:
|
||||
class WCachedResource: public WResource
|
||||
{
|
||||
public:
|
||||
friend class WResourceManager;
|
||||
friend class ResourceManagerImpl;
|
||||
template<class cacheItem,class cacheActual> friend class WCache;
|
||||
|
||||
virtual ~WCachedResource();
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
class WCachedTexture: public WCachedResource
|
||||
{
|
||||
public:
|
||||
friend class WResourceManager;
|
||||
friend class ResourceManagerImpl;
|
||||
template<class cacheItem,class cacheActual> friend class WCache;
|
||||
|
||||
WCachedTexture();
|
||||
@@ -82,7 +82,7 @@ protected:
|
||||
class WCachedParticles: public WCachedResource
|
||||
{
|
||||
public:
|
||||
friend class WResourceManager;
|
||||
friend class ResourceManagerImpl;
|
||||
template<class cacheItem,class cacheActual> friend class WCache;
|
||||
WCachedParticles();
|
||||
~WCachedParticles();
|
||||
@@ -104,7 +104,7 @@ protected:
|
||||
class WCachedSample: public WCachedResource
|
||||
{
|
||||
public:
|
||||
friend class WResourceManager;
|
||||
friend class ResourceManagerImpl;
|
||||
template<class cacheItem,class cacheActual> friend class WCache;
|
||||
|
||||
WCachedSample();
|
||||
|
||||
Reference in New Issue
Block a user