1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <QvElement.h>
const char *QvElement::nodeTypeNames[NumNodeTypes] = {
"Unknown",
"OrthographicCamera",
"PerspectiveCamera",
"DirectionalLight",
"PointLight",
"SpotLight",
"NoOpTransform",
"MatrixTransform",
"Rotation",
"Scale",
"Transform",
"Translation",
};
QvElement::QvElement()
{
// These will be set to something real when the element is
// added to the state
depth = -1;
next = NULL;
// Presumably, the caller will set these
data = NULL;
type = Unknown;
}
QvElement::~QvElement()
{
}
void
QvElement::print()
{
printf("\t\tElement of type %s\n", nodeTypeNames[type]);
}
|