added ResourcePool::ResName for the purpose of logging.

This commit is contained in:
rachytski 2012-04-23 19:23:38 +04:00 committed by Alex Zolotarev
parent 0e5ce3fc48
commit dc50e6ca0c

View file

@ -70,6 +70,11 @@ struct BasePoolTraits
virtual void UpdateState()
{
}
char const * ResName() const
{
return m_factory.ResName();
}
};
/// This traits stores the free elements in a separate pool and has
@ -237,6 +242,7 @@ public:
virtual bool IsCancelled() const = 0;
virtual void UpdateState() = 0;
virtual void SetIsDebugging(bool flag) = 0;
virtual char const * ResName() const = 0;
};
// This class tracks OpenGL resources allocation in
@ -300,4 +306,9 @@ public:
{
m_traits->m_IsDebugging = isDebugging;
}
char const * ResName() const
{
return m_traits->ResName();
}
};