From c068f22329d5cc722622a2183bbb22eef2093df7 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 24 Aug 2026 11:16:07 +0200 Subject: initial import --- tool_src/QvLib/QvElement.cpp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tool_src/QvLib/QvElement.cpp (limited to 'tool_src/QvLib/QvElement.cpp') 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 + +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]); +} -- cgit v1.2.3