From 11fb2128dca305d77b8a852f46bbb5b173cb27df Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Thu, 9 Aug 2018 15:49:44 +0200 Subject: [PATCH] 3219 creaMaracasVisu Feature New Normal - vtk8itk4wx3-mingw64 --- .../wxWindows/widgets/wxVtk3DBaseView.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx index 7a15860..3341046 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx @@ -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 \\CreaTools\\crea_TPdlls-4.0.0\\bin\\opengl-mesa\n the file: opengl32.dll\n to \\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); + } } -- 2.47.1