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