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
modelheaders.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 MODELHEADERS_H
20
#define MODELHEADERS_H
21
22
#include "
mpqfile.h
"
// integer typedefs
23
24
#pragma pack(push,1)
25
26
struct
ModelHeader
27
{
28
char
id
[4];
29
uint8
version
[4];
30
uint32
nameLength
;
31
uint32
nameOfs
;
32
uint32
type
;
33
uint32
nGlobalSequences
;
34
uint32
ofsGlobalSequences
;
35
uint32
nAnimations
;
36
uint32
ofsAnimations
;
37
uint32
nAnimationLookup
;
38
uint32
ofsAnimationLookup
;
39
uint32
nBones
;
40
uint32
ofsBones
;
41
uint32
nKeyBoneLookup
;
42
uint32
ofsKeyBoneLookup
;
43
uint32
nVertices
;
44
uint32
ofsVertices
;
45
uint32
nViews
;
46
uint32
nColors
;
47
uint32
ofsColors
;
48
uint32
nTextures
;
49
uint32
ofsTextures
;
50
uint32
nTransparency
;
51
uint32
ofsTransparency
;
52
uint32
nTextureanimations
;
53
uint32
ofsTextureanimations
;
54
uint32
nTexReplace
;
55
uint32
ofsTexReplace
;
56
uint32
nRenderFlags
;
57
uint32
ofsRenderFlags
;
58
uint32
nBoneLookupTable
;
59
uint32
ofsBoneLookupTable
;
60
uint32
nTexLookup
;
61
uint32
ofsTexLookup
;
62
uint32
nTexUnits
;
63
uint32
ofsTexUnits
;
64
uint32
nTransLookup
;
65
uint32
ofsTransLookup
;
66
uint32
nTexAnimLookup
;
67
uint32
ofsTexAnimLookup
;
68
float
floats
[14];
69
uint32
nBoundingTriangles
;
70
uint32
ofsBoundingTriangles
;
71
uint32
nBoundingVertices
;
72
uint32
ofsBoundingVertices
;
73
uint32
nBoundingNormals
;
74
uint32
ofsBoundingNormals
;
75
uint32
nAttachments
;
76
uint32
ofsAttachments
;
77
uint32
nAttachLookup
;
78
uint32
ofsAttachLookup
;
79
uint32
nAttachments_2
;
80
uint32
ofsAttachments_2
;
81
uint32
nLights
;
82
uint32
ofsLights
;
83
uint32
nCameras
;
84
uint32
ofsCameras
;
85
uint32
nCameraLookup
;
86
uint32
ofsCameraLookup
;
87
uint32
nRibbonEmitters
;
88
uint32
ofsRibbonEmitters
;
89
uint32
nParticleEmitters
;
90
uint32
ofsParticleEmitters
;
91
};
92
93
#pragma pack(pop)
94
#endif
ModelHeader::ofsAnimationLookup
uint32 ofsAnimationLookup
Definition:
modelheaders.h:38
ModelHeader::ofsAnimations
uint32 ofsAnimations
Definition:
modelheaders.h:36
ModelHeader::nGlobalSequences
uint32 nGlobalSequences
Definition:
modelheaders.h:33
ModelHeader::ofsParticleEmitters
uint32 ofsParticleEmitters
Definition:
modelheaders.h:90
ModelHeader::ofsTexLookup
uint32 ofsTexLookup
Definition:
modelheaders.h:61
ModelHeader::nLights
uint32 nLights
Definition:
modelheaders.h:81
ModelHeader::nAnimations
uint32 nAnimations
Definition:
modelheaders.h:35
ModelHeader::ofsCameraLookup
uint32 ofsCameraLookup
Definition:
modelheaders.h:86
ModelHeader
Definition:
modelheaders.h:26
ModelHeader::nTexReplace
uint32 nTexReplace
Definition:
modelheaders.h:54
ModelHeader::nCameras
uint32 nCameras
Definition:
modelheaders.h:83
ModelHeader::nParticleEmitters
uint32 nParticleEmitters
Definition:
modelheaders.h:89
ModelHeader::ofsAttachLookup
uint32 ofsAttachLookup
Definition:
modelheaders.h:78
ModelHeader::nAttachLookup
uint32 nAttachLookup
Definition:
modelheaders.h:77
ModelHeader::ofsKeyBoneLookup
uint32 ofsKeyBoneLookup
Definition:
modelheaders.h:42
ModelHeader::nAnimationLookup
uint32 nAnimationLookup
Definition:
modelheaders.h:37
ModelHeader::nTexLookup
uint32 nTexLookup
Definition:
modelheaders.h:60
ModelHeader::nViews
uint32 nViews
Definition:
modelheaders.h:45
ModelHeader::nTexAnimLookup
uint32 nTexAnimLookup
Definition:
modelheaders.h:66
ModelHeader::nBoundingNormals
uint32 nBoundingNormals
Definition:
modelheaders.h:73
ModelHeader::nTransLookup
uint32 nTransLookup
Definition:
modelheaders.h:64
ModelHeader::ofsBones
uint32 ofsBones
Definition:
modelheaders.h:40
ModelHeader::ofsTextures
uint32 ofsTextures
Definition:
modelheaders.h:49
ModelHeader::ofsLights
uint32 ofsLights
Definition:
modelheaders.h:82
ModelHeader::nAttachments_2
uint32 nAttachments_2
Definition:
modelheaders.h:79
ModelHeader::nBoundingTriangles
uint32 nBoundingTriangles
Definition:
modelheaders.h:69
ModelHeader::ofsRibbonEmitters
uint32 ofsRibbonEmitters
Definition:
modelheaders.h:88
ModelHeader::floats
float floats[14]
Definition:
modelheaders.h:68
ModelHeader::ofsTransparency
uint32 ofsTransparency
Definition:
modelheaders.h:51
ModelHeader::nameLength
uint32 nameLength
Definition:
modelheaders.h:30
ModelHeader::ofsTransLookup
uint32 ofsTransLookup
Definition:
modelheaders.h:65
ModelHeader::nTextureanimations
uint32 nTextureanimations
Definition:
modelheaders.h:52
uint32
uint32_t uint32
Definition:
Define.h:150
ModelHeader::ofsRenderFlags
uint32 ofsRenderFlags
Definition:
modelheaders.h:57
ModelHeader::ofsBoundingTriangles
uint32 ofsBoundingTriangles
Definition:
modelheaders.h:70
ModelHeader::nBones
uint32 nBones
Definition:
modelheaders.h:39
ModelHeader::version
uint8 version[4]
Definition:
modelheaders.h:29
ModelHeader::ofsBoundingNormals
uint32 ofsBoundingNormals
Definition:
modelheaders.h:74
ModelHeader::nVertices
uint32 nVertices
Definition:
modelheaders.h:43
ModelHeader::ofsBoundingVertices
uint32 ofsBoundingVertices
Definition:
modelheaders.h:72
ModelHeader::nTexUnits
uint32 nTexUnits
Definition:
modelheaders.h:62
ModelHeader::nCameraLookup
uint32 nCameraLookup
Definition:
modelheaders.h:85
ModelHeader::ofsColors
uint32 ofsColors
Definition:
modelheaders.h:47
ModelHeader::ofsTextureanimations
uint32 ofsTextureanimations
Definition:
modelheaders.h:53
mpqfile.h
ModelHeader::nBoneLookupTable
uint32 nBoneLookupTable
Definition:
modelheaders.h:58
ModelHeader::nRibbonEmitters
uint32 nRibbonEmitters
Definition:
modelheaders.h:87
ModelHeader::ofsVertices
uint32 ofsVertices
Definition:
modelheaders.h:44
ModelHeader::nTextures
uint32 nTextures
Definition:
modelheaders.h:48
ModelHeader::nKeyBoneLookup
uint32 nKeyBoneLookup
Definition:
modelheaders.h:41
ModelHeader::ofsAttachments_2
uint32 ofsAttachments_2
Definition:
modelheaders.h:80
ModelHeader::ofsAttachments
uint32 ofsAttachments
Definition:
modelheaders.h:76
ModelHeader::ofsTexAnimLookup
uint32 ofsTexAnimLookup
Definition:
modelheaders.h:67
uint8
uint8_t uint8
Definition:
Define.h:152
ModelHeader::ofsTexUnits
uint32 ofsTexUnits
Definition:
modelheaders.h:63
ModelHeader::nBoundingVertices
uint32 nBoundingVertices
Definition:
modelheaders.h:71
ModelHeader::type
uint32 type
Definition:
modelheaders.h:32
ModelHeader::nameOfs
uint32 nameOfs
Definition:
modelheaders.h:31
ModelHeader::ofsCameras
uint32 ofsCameras
Definition:
modelheaders.h:84
ModelHeader::nRenderFlags
uint32 nRenderFlags
Definition:
modelheaders.h:56
ModelHeader::ofsBoneLookupTable
uint32 ofsBoneLookupTable
Definition:
modelheaders.h:59
ModelHeader::ofsGlobalSequences
uint32 ofsGlobalSequences
Definition:
modelheaders.h:34
ModelHeader::nAttachments
uint32 nAttachments
Definition:
modelheaders.h:75
ModelHeader::nTransparency
uint32 nTransparency
Definition:
modelheaders.h:50
ModelHeader::nColors
uint32 nColors
Definition:
modelheaders.h:46
ModelHeader::ofsTexReplace
uint32 ofsTexReplace
Definition:
modelheaders.h:55
Generated on Tue Apr 5 2016 20:13:55 for TrinityCore by
1.8.8