[vtkusers] Detection of insufficient OpenGL
elvis.stansvik at orexplore.com
Wed May 10 08:17:38 EDT 2017
I'd like our application to do detection of OpenGL capabilities, to
make sure the capabilities are sufficient for what we're using VTK for
(volume rendering with vtkGPUVolumeRayCastMapper, OpenGL2 backend +
some charts stuff with vtkChartXY, in the future maybe other things).
Is there any provisions in VTK itself for doing OpenGL feature
detection (maybe conditioned on the parts of VTK that is to be used)?
I guess I could always dig into the VTK source myself, to deduce what
features are needed, and probe for that manually somehow, but it feels
a bit brittle. It would be better if VTK itself could report
insufficient OpenGL support in way that I can intercept, to show a
meaningful error message.
Anyone been in the same situation? I found this Slicer bug
where in the comments the developers are also discussing the
possibilities of detecting OpenGL capabilities.
More information about the vtkusers