[vtk-developers] Detecting OpenGL2 mode at compile time?
    Sean McBride 
    sean at rogue-research.com
       
    Wed Jul  8 18:46:33 EDT 2015
    
    
  
Hi all,
Is there a way to detect at compile-time OpenGL vs OpenGL2 mode?
Since my app uses Xcode, I have to do the factory initialization thing, and I'd like to be able to handle both cases as I test between both OpenGLs, ie:
#if ???
 #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL)
#elif ???
 #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)
#endif
I don't see anything in vtkConfigure.h.
Thanks,
-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada
    
    
More information about the vtk-developers
mailing list