Updated Copyright year to 2013
[getmangos.git] / contrib / mmap / src / IntermediateValues.h
blobf03390674fb7c6430f478d7b7c8c8cd4f76df8b9
1 /*
2 * Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef _INTERMEDIATE_VALUES_H
20 #define _INTERMEDIATE_VALUES_H
22 #include "MMapCommon.h"
23 #include "TerrainBuilder.h"
25 #include "Recast.h"
26 #include "DetourNavMesh.h"
28 namespace MMAP
30 // this class gathers all debug info holding and output
31 struct IntermediateValues
33 rcHeightfield* heightfield;
34 rcCompactHeightfield* compactHeightfield;
35 rcContourSet* contours;
36 rcPolyMesh* polyMesh;
37 rcPolyMeshDetail* polyMeshDetail;
39 IntermediateValues() : compactHeightfield(NULL), heightfield(NULL),
40 contours(NULL), polyMesh(NULL), polyMeshDetail(NULL) {}
41 ~IntermediateValues();
43 void writeIV(uint32 mapID, uint32 tileX, uint32 tileY);
45 void debugWrite(FILE* file, const rcHeightfield* mesh);
46 void debugWrite(FILE* file, const rcCompactHeightfield* chf);
47 void debugWrite(FILE* file, const rcContourSet* cs);
48 void debugWrite(FILE* file, const rcPolyMesh* mesh);
49 void debugWrite(FILE* file, const rcPolyMeshDetail* mesh);
51 void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData& meshData);
54 #endif