aboutsummaryrefslogtreecommitdiff
path: root/tool_src/QvLib/QvElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tool_src/QvLib/QvElement.cpp')
-rw-r--r--tool_src/QvLib/QvElement.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/tool_src/QvLib/QvElement.cpp b/tool_src/QvLib/QvElement.cpp
new file mode 100644
index 0000000..28ddb88
--- /dev/null
+++ b/tool_src/QvLib/QvElement.cpp
@@ -0,0 +1,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]);
+}