//
ConeJaune.cpp :
Defines the entry point for the console application. // #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } |
// ConeJaune.cpp
: Defines the entry
point for
the console application. // // imposé par le mode Win32 Console Application de Windows/Visual Studio #include "stdafx.h" // include de SoQt #include <Inventor/Qt/SoQt.h> #include <Inventor/Qt/viewers/SoQtExaminerViewer.h> #include <Inventor/nodes/SoBaseColor.h> #include <Inventor/nodes/SoCone.h> #include <Inventor/nodes/SoSeparator.h> int _tmain(int argc, _TCHAR* argv[]) { // Initializes SoQt library (and implicitly also the Coin and Qt // libraries). Returns a top-level / shell Qt window to use. char ** argvBis = (char**) argv; QWidget * mainwin = SoQt::init(argc, argvBis, argvBis[0]); // Make a dead simple scene graph by using the Coin library, only // containing a single yellow cone under the scenegraph root. SoSeparator * root = new SoSeparator; root->ref(); SoBaseColor * col = new SoBaseColor; col->rgb = SbColor(1, 1, 0); root->addChild(col); root->addChild(new SoCone); // Use one of the convenient SoQt viewer classes. SoQtExaminerViewer * eviewer = new SoQtExaminerViewer(mainwin); eviewer->setSceneGraph(root); eviewer->show(); // Pop up the main window. SoQt::show(mainwin); // Loop until exit. SoQt::mainLoop(); // Clean up resources. delete eviewer; root->unref(); return 0; } |
$(QTDIR)\include\qcstring.h(61)
: warning C4996: 'strcpy' was declared deprecated C:\Program
Files\Microsoft Visual Studio 8\VC\include\string.h(56) : see
declaration of 'strcpy' $(QTDIR)\include\qcstring.h(86) : warning C4996: 'strcpy' was declared deprecated C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(56) : see declaration of 'strcpy' $(COINDIR)\include\Inventor/lists/SbIntList.h(35) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'void *' of greater size $(COINDIR)\include\Inventor/lists/SbIntList.h(38) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'void *' of greater size $(COINDIR)\include\Inventor/lists/SbIntList.h(41) : warning C4312: 'type cast' : conversion from 'unsigned long' to 'void *' of greater size |