mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-28 21:05:53 +01:00
d228b6a7a7
The tags are often initially assigned from pointers and then copied around, even from one tag type to the other. As BSPTree::MoveSubTreeToArray() uses them to get the original pointer, we need the pointers anyway, so just CRC-ing the pointers doesn't seem like a good option. As the tags are assigned from other tag-types sometimes, I probably would have needed to add Pointers for the same values in addition to the ULONG tags, that are also copied around along the tags, to keep the tags ULONG - that seemed like a worse alternative. However, when writing (via BSPTree::Write_t()) the bn_ulPlaneTag tag needs to be ULONG, so there I actually use CRC for 64bit pointers (via IntPtrToID()) - when restoring (in Read_t()), the pointers aren't valid anymore anyway, so that all should somehow be fine. I assume that Write_t() is only used by the Editor, anyway, so I fear I won't be able to test that part of the code on Linux anytime soon. |
||
---|---|---|
.. | ||
AllocationArray.cpp | ||
AllocationArray.h | ||
BSP_internal.h | ||
BSP.cpp | ||
BSP.h | ||
DynamicArray.cpp | ||
DynamicArray.h | ||
DynamicContainer.cpp | ||
DynamicContainer.h | ||
DynamicStackArray.cpp | ||
DynamicStackArray.h | ||
HashTableTemplate.cpp | ||
HashTableTemplate.h | ||
LinearAllocator.cpp | ||
LinearAllocator.h | ||
NameTable_CTFileName.cpp | ||
NameTable_CTFileName.h | ||
NameTable_CTranslationPair.cpp | ||
NameTable_CTranslationPair.h | ||
NameTable.cpp | ||
NameTable.h | ||
Selection.cpp | ||
Selection.h | ||
StaticArray.cpp | ||
StaticArray.h | ||
StaticStackArray.cpp | ||
StaticStackArray.h | ||
Stock_CAnimData.cpp | ||
Stock_CAnimData.h | ||
Stock_CAnimSet.cpp | ||
Stock_CAnimSet.h | ||
Stock_CEntityClass.cpp | ||
Stock_CEntityClass.h | ||
Stock_CMesh.cpp | ||
Stock_CMesh.h | ||
Stock_CModelData.cpp | ||
Stock_CModelData.h | ||
Stock_CShader.cpp | ||
Stock_CShader.h | ||
Stock_CSkeleton.cpp | ||
Stock_CSkeleton.h | ||
Stock_CSoundData.cpp | ||
Stock_CSoundData.h | ||
Stock_CTextureData.cpp | ||
Stock_CTextureData.h | ||
Stock.cpp | ||
Stock.h |