]> Creatis software - creaMaracasVisu.git/commitdiff
3219 creaMaracasVisu Feature New Normal - vtk8itk4wx3-mingw64
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 9 Aug 2018 13:49:44 +0000 (15:49 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 9 Aug 2018 13:49:44 +0000 (15:49 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx

index 7a158603a8551078b2d98d63d71fbe8936833711..334104671c35e4cb36e97ff588fc8a3098ea9d4b 100644 (file)
@@ -154,6 +154,20 @@ void wxVtk3DBaseView::Configure()
                //wxVtkBaseView::Configure();
                _aRenderer      = vtkRenderer::New();
                _renWin         = vtkRenderWindow::New();
+               
+               int supportopengl=_renWin->SupportsOpenGL();
+               printf("EED wxVtk3DBaseView::Configure >>>>> vtkRenderWindow SupportsOpenGL %d\n", supportopengl );
+               printf("EED wxVtk3DBaseView::Configure >>>>> vtkRenderWindow IsDirect       %d\n", _renWin->IsDirect() );
+               if (supportopengl==0)
+               {
+#if defined(_WIN32)
+                       printf("   OpenGL 3 not detected.\n    Try to install opengl drivers or use de opengl-mesa version.\n    Copy from <ProgramsFiles>\\CreaTools\\crea_TPdlls-4.0.0\\bin\\opengl-mesa\n    the file: opengl32.dll\n to    <ProgramsFiles>\\CreaTools\\CreaTools-3.0.0\\bin \n");
+#else
+                       printf("   OpenGL 3 not detected.\n    Try to install opengl drivers or use de opengl-mesa version.\n");
+#endif
+                       exit(0);
+               }
+               
                _renWin->AddRenderer(_aRenderer);
 
                _aRenderer->GradientBackgroundOn();
@@ -202,6 +216,7 @@ void wxVtk3DBaseView::Configure()
                GetCamera()->Roll(180);
                GetCamera()->Yaw(180+30);
                GetCamera()->Pitch(-22);
+                               
        }
 }