mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-20 03:37:52 -05:00
ObjLoading/ObjWriting: Initial skeleton for loading and writing obj files
This commit is contained in:
16
src/ObjCommon/ObjContainer/ObjContainerReferenceable.cpp
Normal file
16
src/ObjCommon/ObjContainer/ObjContainerReferenceable.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include "ObjContainerReferenceable.h"
|
||||
|
||||
void ObjContainerReferenceable::AddReference(Zone* referencer)
|
||||
{
|
||||
m_references.insert(referencer);
|
||||
}
|
||||
|
||||
bool ObjContainerReferenceable::RemoveReference(Zone* zone)
|
||||
{
|
||||
return m_references.erase(zone) > 0;
|
||||
}
|
||||
|
||||
bool ObjContainerReferenceable::IsReferenced() const
|
||||
{
|
||||
return !m_references.empty();
|
||||
}
|
Reference in New Issue
Block a user