TrinityCore
IntermediateValues.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef _INTERMEDIATE_VALUES_H
19#define _INTERMEDIATE_VALUES_H
20
21#include "Recast.h"
22#include "TerrainBuilder.h"
23
24namespace MMAP
25{
26 // this class gathers all debug info holding and output
28 {
29 rcHeightfield* heightfield;
30 rcCompactHeightfield* compactHeightfield;
31 rcContourSet* contours;
32 rcPolyMesh* polyMesh;
33 rcPolyMeshDetail* polyMeshDetail;
34
36 contours(nullptr), polyMesh(nullptr), polyMeshDetail(nullptr) {}
38
39 void writeIV(uint32 mapID, uint32 tileX, uint32 tileY);
40
41 void debugWrite(FILE* file, rcHeightfield const* mesh);
42 void debugWrite(FILE* file, rcCompactHeightfield const* chf);
43 void debugWrite(FILE* file, rcContourSet const* cs);
44 void debugWrite(FILE* file, rcPolyMesh const* mesh);
45 void debugWrite(FILE* file, rcPolyMeshDetail const* mesh);
46
47 void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData);
48 };
49}
50#endif
uint32_t uint32
Definition: Define.h:142
rcCompactHeightfield * compactHeightfield
void debugWrite(FILE *file, rcHeightfield const *mesh)
rcPolyMeshDetail * polyMeshDetail
void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData)
void writeIV(uint32 mapID, uint32 tileX, uint32 tileY)