[vtk-developers] Detecting OpenGL2 mode at compile time?

Ben Boeckel ben.boeckel at kitware.com
Thu Jul 9 09:45:21 EDT 2015


On Thu, Jul 09, 2015 at 09:04:14 -0400, Ken Martin wrote:
> if(VTK_RENDERING_BACKEND STREQUAL "OpenGL2")
>   set_source_files_properties(
>     vtkPSurfaceLICComposite.cxx
>     PROPERTIES COMPILE_FLAGS -DVTK_OPENGL2)
> endif()

Some places use VTKGL2 and others use VTK_OPENGL2. I started using the
former, but that's because I saw it first. We should probably make these
consistent though.

--Ben


More information about the vtk-developers mailing list