[vtk-developers] ANGLE backend

Oleksandr Bezotosniy abezotosniy at amcbridge.com
Mon Jul 31 09:11:34 EDT 2017


Hi Robert,

We don't need vtkRenderingContextOpenGL2 so we excluded it from build and
patched only required modules.

We use the following command to build VTK:
cmake -G"Visual Studio 14 2015 Win64" ../
-DCMAKE_INSTALL_PREFIX="%CD%/install" -DCMAKE_PREFIX_PATH="%QT_DIR%"
-DCMAKE_CXX_MP_FLAG=ON -DCMAKE_DEBUG_POSTFIX="d" -DVTK_QT_VERSION=5
-DVTK_BUILD_QT_DESIGNER_PLUGIN=OFF -DVTK_CUSTOM_LIBRARY_SUFFIX=""
-DVTK_RENDERING_BACKEND="OpenGL2" -DModule_vtkGUISupportQt=ON
-DModule_vtkGUISupportQtOpenGL=ON -DModule_vtkRenderingQt=ON
-DBUILD_DOCUMENTATION=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON
-DBUILD_TESTING=OFF -DVTK_USE_QTANGLE=ON -DOPENGL_ES_VERSION="3.0"
-DModule_vtkRenderingOpenGL2=ON  -DModule_vtkRenderingAnnotation=ON
-DModule_vtkInteractionWidgets=ON -DVTK_Group_Rendering:BOOL=OFF
-DVTK_Group_StandAlone:BOOL=OFF -DVTK_Group_Imaging:BOOL=OFF
-DVTK_Group_MPI:BOOL=OFF -DVTK_Group_Views:BOOL=OFF -DVTK_Group_Qt:BOOL=OFF
-DVTK_Group_Tk:BOOL=OFF -DVTK_Group_Web:BOOL=OFF

ANGLE doesn't have some OpenGL function and definitions. 
So if you need this module you just need to wrap these error like the
following:
#if GL_ES_VERSION_3_0 != 1
    glPointSize()
#endif

Thanks,
Alex



--
View this message in context: http://vtk.1045678.n5.nabble.com/ANGLE-backend-tp5744216p5744219.html
Sent from the VTK - Dev mailing list archive at Nabble.com.


More information about the vtk-developers mailing list