TrinityCore
Loading...
Searching...
No Matches
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 "PathCommon.h"
22#include "TerrainBuilder.h"
23#include "Recast.h"
24
25namespace MMAP
26{
27 // this class gathers all debug info holding and output
29 {
30 rcHeightfield* heightfield;
31 rcCompactHeightfield* compactHeightfield;
32 rcContourSet* contours;
33 rcPolyMesh* polyMesh;
34 rcPolyMeshDetail* polyMeshDetail;
35
37 contours(nullptr), polyMesh(nullptr), polyMeshDetail(nullptr) {}
39
40 void writeIV(uint32 mapID, uint32 tileX, uint32 tileY);
41
42 void debugWrite(FILE* file, rcHeightfield const* mesh);
43 void debugWrite(FILE* file, rcCompactHeightfield const* chf);
44 void debugWrite(FILE* file, rcContourSet const* cs);
45 void debugWrite(FILE* file, rcPolyMesh const* mesh);
46 void debugWrite(FILE* file, rcPolyMeshDetail const* mesh);
47
48 void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData);
49 };
50}
51#endif
uint32_t uint32
Definition Define.h:133
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)