gwnavruntime/navmesh/indexedtrianglesoup2i.h Source File

indexedtrianglesoup2i.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
9 
10 
13 
14 
15 namespace Kaim
16 {
17 
18 class IndexedTriangleSoup2i
19 {
20  KY_DEFINE_NEW_DELETE_OPERATORS(Kaim::Stat_Default_Mem)
21 public:
22  IndexedTriangleSoup2i(MemoryHeap* heap)
23  : m_vertices(heap)
24  , m_verticesAltitudes(heap)
25  , m_triangles(heap)
26  , m_verticesTags(heap)
27  {}
28 
29  void Clear()
30  {
31  m_vertices.Clear();
32  m_verticesAltitudes.Clear();
33  m_triangles.Clear();
34  m_verticesTags.Clear();
35  }
36 
37 public:
38  KyArrayDH<Vec2i> m_vertices;
39  KyArrayDH_POD<KyFloat32> m_verticesAltitudes;
40  KyArrayDH_POD<KyUInt32> m_triangles;
41  KyArrayDH_POD<KyUInt32> m_verticesTags;
42 };
43 
44 }
45 
46 
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17