TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
IntermediateValues.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  * Copyright (C) 2005-2011 MaNGOS <http://getmangos.com/>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; either version 2 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef _INTERMEDIATE_VALUES_H
20 #define _INTERMEDIATE_VALUES_H
21 
22 #include "PathCommon.h"
23 #include "TerrainBuilder.h"
24 #include "Recast.h"
25 #include "DetourNavMesh.h"
26 
27 namespace MMAP
28 {
29  // this class gathers all debug info holding and output
31  {
37 
38  IntermediateValues() : heightfield(NULL), compactHeightfield(NULL),
39  contours(NULL), polyMesh(NULL), polyMeshDetail(NULL) {}
41 
42  void writeIV(uint32 mapID, uint32 tileX, uint32 tileY);
43 
44  void debugWrite(FILE* file, const rcHeightfield* mesh);
45  void debugWrite(FILE* file, const rcCompactHeightfield* chf);
46  void debugWrite(FILE* file, const rcContourSet* cs);
47  void debugWrite(FILE* file, const rcPolyMesh* mesh);
48  void debugWrite(FILE* file, const rcPolyMeshDetail* mesh);
49 
50  void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData);
51  };
52 }
53 #endif
Definition: Recast.h:274
rcPolyMesh * polyMesh
Definition: IntermediateValues.h:35
rcPolyMeshDetail * polyMeshDetail
Definition: IntermediateValues.h:36
rcContourSet * contours
Definition: IntermediateValues.h:34
arena_t NULL
Definition: jemalloc_internal.h:624
void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData)
Definition: IntermediateValues.cpp:202
Definition: MMapFactory.cpp:22
IntermediateValues()
Definition: IntermediateValues.h:38
Definition: Recast.h:305
~IntermediateValues()
Definition: IntermediateValues.cpp:23
Definition: Recast.h:368
Definition: Recast.h:383
uint32_t uint32
Definition: Define.h:150
void debugWrite(FILE *file, const rcHeightfield *mesh)
Definition: IntermediateValues.cpp:72
rcCompactHeightfield * compactHeightfield
Definition: IntermediateValues.h:33
void writeIV(uint32 mapID, uint32 tileX, uint32 tileY)
Definition: IntermediateValues.cpp:32
Definition: TerrainBuilder.h:61
rcHeightfield * heightfield
Definition: IntermediateValues.h:32
Definition: Recast.h:404
Definition: IntermediateValues.h:30