ScummVM API documentation
bodytypes.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef TWINE_PARSER_BODYTYPES_H
23
#define TWINE_PARSER_BODYTYPES_H
24
25
#include "common/array.h"
26
#include "twine/shared.h"
27
#include "twine/parser/anim.h"
28
29
namespace
TwinE
{
30
31
struct
BodyVertex
{
32
int16 x;
33
int16 y;
34
int16 z;
35
uint16 bone;
36
};
37
38
struct
BodyLine
{
39
// fill byte here
40
uint8 color;
41
// 2 fill bytes here
42
uint16 vertex1;
43
uint16 vertex2;
44
};
45
46
struct
BodySphere
{
47
uint8 fillType;
48
uint16 color;
// start and end color index
49
// fill byte here
50
uint16 radius;
51
uint16 vertex;
52
};
53
54
struct
BodyBone
{
55
uint16 parent;
56
uint16 vertex;
57
int16 firstVertex;
58
int16 numVertices;
59
int32 numNormals;
60
BoneFrame
initalBoneState;
61
62
inline
bool
isRoot()
const
{
63
return
parent == 0xffff;
64
}
65
};
66
67
struct
BodyNormal
{
68
int16 x;
69
int16 y;
70
int16 z;
71
uint16 prenormalizedRange;
72
};
73
74
struct
BodyPolygon
{
75
Common::Array<uint16>
indices;
76
Common::Array<uint16>
normals;
77
int8 materialType = 0;
78
int16 intensity = 0;
// color1 / color2
79
};
80
81
}
82
83
#endif
TwinE::BodyPolygon
Definition:
bodytypes.h:74
Common::Array< uint16 >
TwinE::BodyNormal
Definition:
bodytypes.h:67
TwinE::BodyVertex
Definition:
bodytypes.h:31
TwinE::BodySphere
Definition:
bodytypes.h:46
TwinE
Definition:
achievements_tables.h:27
TwinE::BodyLine
Definition:
bodytypes.h:38
TwinE::BoneFrame
Definition:
anim.h:38
TwinE::BodyBone
Definition:
bodytypes.h:54
engines
twine
parser
bodytypes.h
Generated on Fri Nov 15 2024 09:22:46 for ScummVM API documentation by
1.8.13