TrinityCore
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
30
struct
IntermediateValues
31
{
32
rcHeightfield
*
heightfield
;
33
rcCompactHeightfield
*
compactHeightfield
;
34
rcContourSet
*
contours
;
35
rcPolyMesh
*
polyMesh
;
36
rcPolyMeshDetail
*
polyMeshDetail
;
37
38
IntermediateValues
() : heightfield(
NULL
), compactHeightfield(
NULL
),
39
contours(
NULL
), polyMesh(
NULL
), polyMeshDetail(
NULL
) {}
40
~IntermediateValues
();
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
rcHeightfield
Definition:
Recast.h:274
PathCommon.h
Recast.h
MMAP::IntermediateValues::polyMesh
rcPolyMesh * polyMesh
Definition:
IntermediateValues.h:35
MMAP::IntermediateValues::polyMeshDetail
rcPolyMeshDetail * polyMeshDetail
Definition:
IntermediateValues.h:36
MMAP::IntermediateValues::contours
rcContourSet * contours
Definition:
IntermediateValues.h:34
NULL
arena_t NULL
Definition:
jemalloc_internal.h:624
MMAP::IntermediateValues::generateObjFile
void generateObjFile(uint32 mapID, uint32 tileX, uint32 tileY, MeshData &meshData)
Definition:
IntermediateValues.cpp:202
MMAP
Definition:
MMapFactory.cpp:22
TerrainBuilder.h
MMAP::IntermediateValues::IntermediateValues
IntermediateValues()
Definition:
IntermediateValues.h:38
rcCompactHeightfield
Definition:
Recast.h:305
MMAP::IntermediateValues::~IntermediateValues
~IntermediateValues()
Definition:
IntermediateValues.cpp:23
rcContourSet
Definition:
Recast.h:368
rcPolyMesh
Definition:
Recast.h:383
uint32
uint32_t uint32
Definition:
Define.h:150
MMAP::IntermediateValues::debugWrite
void debugWrite(FILE *file, const rcHeightfield *mesh)
Definition:
IntermediateValues.cpp:72
MMAP::IntermediateValues::compactHeightfield
rcCompactHeightfield * compactHeightfield
Definition:
IntermediateValues.h:33
MMAP::IntermediateValues::writeIV
void writeIV(uint32 mapID, uint32 tileX, uint32 tileY)
Definition:
IntermediateValues.cpp:32
MMAP::MeshData
Definition:
TerrainBuilder.h:61
DetourNavMesh.h
MMAP::IntermediateValues::heightfield
rcHeightfield * heightfield
Definition:
IntermediateValues.h:32
rcPolyMeshDetail
Definition:
Recast.h:404
MMAP::IntermediateValues
Definition:
IntermediateValues.h:30
Generated on Tue Apr 5 2016 20:13:55 for TrinityCore by
1.8.8