23 lines · 681 B · C++
RawDownload
/* * This file is part of MXE. See LICENSE.md for licensing information. */ #include <Inventor/SbBasic.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);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t