gwnavruntime/navmesh/indexedtrianglesoup2i.h Source File

indexedtrianglesoup2i.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // Primary contact: GUAL - secondary contact: NOBODY
9 #ifndef GwNavGen_IndexedTriangleSoup2i_H
10 #define GwNavGen_IndexedTriangleSoup2i_H
11 
12 
15 
16 
17 namespace Kaim
18 {
19 
20 class IndexedTriangleSoup2i
21 {
22  KY_DEFINE_NEW_DELETE_OPERATORS(Kaim::Stat_Default_Mem)
23 public:
24  IndexedTriangleSoup2i(MemoryHeap* heap)
25  : m_vertices(heap)
26  , m_verticesAltitudes(heap)
27  , m_triangles(heap)
28  , m_verticesTags(heap)
29  {}
30 
31  void Clear()
32  {
33  m_vertices.Clear();
34  m_verticesAltitudes.Clear();
35  m_triangles.Clear();
36  m_verticesTags.Clear();
37  }
38 
39 public:
40  KyArrayDH<Vec2i> m_vertices;
41  KyArrayDH_POD<KyFloat32> m_verticesAltitudes;
42  KyArrayDH_POD<KyUInt32> m_triangles;
43  KyArrayDH_POD<KyUInt32> m_verticesTags;
44 };
45 
46 }
47 
48 
49 #endif
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137