diff options
author | Christoph Weiss <weiss@wsoptics.de> | 2015-11-03 13:16:31 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-11-18 08:27:10 (GMT) |
commit | 1118024f45c5e274bc1a82d0b14f25293302b809 (patch) | |
tree | 9a92e2e80b20c345b77d5b3c0c9e7068ea5d2f67 /src/coin-test.cpp | |
parent | c62bcdbee56e87c81f1faa105b8777a5879d4e2e (diff) | |
download | mxe-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.cpp | 24 |
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); +} |