ezEngine  Milestone 7
DynamicTree.h
1 #pragma once
2 
3 #include <CoreUtils/Basics.h>
4 #include <Foundation/Containers/Map.h>
5 #include <Foundation/Math/Vec3.h>
6 #include <Foundation/Math/BoundingBox.h>
7 #include <Foundation/Math/Frustum.h>
8 
10 {
11  struct ezObjectData
12  {
13  ezInt32 m_iObjectType;
14  ezInt32 m_iObjectInstance;
15  };
16 
18  {
19  ezUInt32 m_uiKey;
20  ezUInt32 m_uiCounter;
21 
23  {
24  m_uiKey = 0;
25  m_uiCounter = 0;
26  }
27 
28  inline bool operator<(const ezMultiMapKey& rhs) const
29  {
30  if (m_uiKey == rhs.m_uiKey)
31  return m_uiCounter < rhs.m_uiCounter;
32 
33  return m_uiKey < rhs.m_uiKey;
34  }
35 
36  inline bool operator==(const ezMultiMapKey& rhs) const
37  {
38  return (m_uiCounter == rhs.m_uiCounter && m_uiKey == rhs.m_uiKey);
39  }
40  };
41 };
42 
45 
47 typedef bool (*EZ_VISIBLE_OBJ_CALLBACK) (void* pPassThrough, ezDynamicTreeObjectConst Object);
48 
49 class ezDynamicOctree;
50 class ezDynamicQuadtree;
51 
52 
53