<div dir="ltr"><div>There *is* a global VTK configuration header.  vtkConfigure.h has many of these definitions and is included in vtkObjectBase.h (so pretty much everywhere).  But you may be right that this should go somewhere in the rendering code rather than in there.  I am not sure that vtkRenderWindow is the best location for it, but I am not as familiar with the code that uses the compiler definition.  Does everywhere that #ifdefs VTK_OPENGL2 include vtkRenderWindow.h?  Or would we have to pull in that header just for that macro?<br><br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 11:54 AM, Tim Thirion <span dir="ltr"><<a href="mailto:tim.thirion@kitware.com" target="_blank">tim.thirion@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, that was my original question. :) Is the vtkRenderWindow the best place for this? I'm happy to add it.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 11:12 AM, Joachim Pouderoux <span dir="ltr"><<a href="mailto:joachim.pouderoux@kitware.com" target="_blank">joachim.pouderoux@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">BTW, I took a look but I do not see any way for a third party VTK or PV application that would not use CMake machinery (and use VTK_OPENGL_BACKEND) to know if the VTK it uses is based on OpenGL backend 1 or 2.<br>VTK_OPENGL2 is a compiler definition provided to build VTK or PV but, as there is no global VTK configuration header, shouldn't we add a function in vtkRenderWindow to return the version of the backend it is based on?<br><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, Technical Expert</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div>
<br><div class="gmail_quote"><div><div>2015-12-08 19:58 GMT+01:00 Ben Boeckel <span dir="ltr"><<a href="mailto:ben.boeckel@kitware.com" target="_blank">ben.boeckel@kitware.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><span>On Mon, Dec 07, 2015 at 14:49:51 -0500, Tim Thirion wrote:<br>
> I'm looking to provide run-time identification of the current OpenGL<br>
> backend in use. Some questions:<br>
><br>
> 1. VTK #defines VTK_OPENGL2, but ParaView #defines VTKGL2. Is there a<br>
> particular reason we have both?<br>
<br>
</span>VTK used to have both. VTKGL2 should be migrated to VTK_OPENGL2 (as VTK<br>
did).<br>
<span><br>
> 2. Is there an ideal place to define such a constant? Perhaps on the render<br>
> window?<br>
<br>
</span>The About dialog has a list of information already (versions of Python,<br>
matplotlib, numpy, Qt, etc.).<br>
<br>
--Ben<br></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br></div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>