summaryrefslogtreecommitdiffstats
path: root/src/coin-test.cpp
diff options
context:
space:
mode:
authorChristoph Weiss <weiss@wsoptics.de>2015-11-03 13:16:31 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-11-18 08:27:10 (GMT)
commit1118024f45c5e274bc1a82d0b14f25293302b809 (patch)
tree9a92e2e80b20c345b77d5b3c0c9e7068ea5d2f67 /src/coin-test.cpp
parentc62bcdbee56e87c81f1faa105b8777a5879d4e2e (diff)
downloadmxe-1118024f45c5e274bc1a82d0b14f25293302b809.zip
mxe-1118024f45c5e274bc1a82d0b14f25293302b809.tar.gz
mxe-1118024f45c5e274bc1a82d0b14f25293302b809.tar.bz2
Add Coin3D 3.1.3 (https://bitbucket.org/Coin3D/coin/wiki/Home)
Diffstat (limited to 'src/coin-test.cpp')
-rw-r--r--src/coin-test.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/coin-test.cpp b/src/coin-test.cpp
new file mode 100644
index 0000000..0974407
--- /dev/null
+++ b/src/coin-test.cpp
@@ -0,0 +1,24 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ */
+
+#include <Inventor/C/errors/debugerror.h>
+#include <Inventor/nodes/SoCone.h>
+#include <Inventor/nodes/SoDirectionalLight.h>
+#include <Inventor/nodes/SoMaterial.h>
+#include <Inventor/nodes/SoPerspectiveCamera.h>
+#include <Inventor/nodes/SoSeparator.h>
+
+int main()
+{
+ SoSeparator *root = new SoSeparator;
+ SoPerspectiveCamera *myCamera = new SoPerspectiveCamera;
+ SoMaterial *myMaterial = new SoMaterial;
+ root->ref();
+ root->addChild(myCamera);
+ root->addChild(new SoDirectionalLight);
+ myMaterial->diffuseColor.setValue(1.0, 0.0, 0.0);
+ root->addChild(myMaterial);
+ root->addChild(new SoCone);
+}