diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-08-24 11:16:07 +0200 |
| commit | c068f22329d5cc722622a2183bbb22eef2093df7 (patch) | |
| tree | 12d56c1aede67988a55e241364606bfbb4dba933 /tool_src/QvLib/QvElement.cpp | |
| download | openparsec-main.tar.xz openparsec-main.zip | |
Diffstat (limited to 'tool_src/QvLib/QvElement.cpp')
| -rw-r--r-- | tool_src/QvLib/QvElement.cpp | 38 |
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]); +} |
