+1 for to centralize the wrapper documentation :) Would be happy to read through it.<div>Thanks</div><div>Jc<br><br><div class="gmail_quote">On Fri, May 11, 2012 at 11:46 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Brad,<br>
<br>
It seems that vtkTextureUnitManager isn't in<br>
vtkRenderingOpenGLHierarchy.txt, so the wrappers no longer<br>
automatically exclude methods that use it as a parameter. I'll<br>
look into this, I think that something is missing either from the<br>
CMakeLists.txt or from one of the cmake wrapping macros.<br>
The new BTX/ETX behavior that was brought into VTK in 5.8<br>
is documented here:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Remove_BTX_ETX" target="_blank">http://www.vtk.org/Wiki/VTK/Remove_BTX_ETX</a><br>
<br>
I need to add a "Wrapping" section to the wiki that links to the<br>
various wiki pages that are related to wrapping... there's a fair bit<br>
of documentation for the wrappers, but none of it is easy to find.<br>
<span class="HOEnZb"><font color="#888888"><br>
- David<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, May 11, 2012 at 9:08 AM, Brad King <<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>> wrote:<br>
> Hi Folks,<br>
><br>
> TestSetGet currently crashes:<br>
><br>
> <a href="http://open.cdash.org/testDetails.php?test=145727028&build=2266971" target="_blank">http://open.cdash.org/testDetails.php?test=145727028&build=2266971</a><br>
><br>
> when running against a Mesa GL library. It appears to call<br>
> glGetString(GL_RENDERER) without a GL context.<br>
><br>
> At some point during the modularization transition the Tcl wrappers<br>
> started seeing vtkOpenGLRenderWindow::GetTextureUnitManager even<br>
> though it is in a BTX/ETX block (David G?). That exposes this<br>
> existing problem.<br>
><br>
> Essentially the test runs<br>
><br>
> package require vtk<br>
> vtkGenericOpenGLRenderWindow x<br>
> x GetTextureUnitManager<br>
><br>
> but one can simplify it to<br>
><br>
> package require vtk<br>
> vtkGenericOpenGLRenderWindow x<br>
> [x GetHardwareSupport] GetNumberOfTextureUnits<br>
><br>
> or even just<br>
><br>
> vtkGenericOpenGLRenderWindow x<br>
> [x GetExtensionManager] ExtensionSupported "GL_VERSION_2_0"<br>
><br>
> The method vtkOpenGLExtensionManager::ExtensionSupported has:<br>
><br>
> const char *gl_renderer=<br>
> reinterpret_cast<const char *>(glGetString(GL_RENDERER));<br>
><br>
> but it is not safe to call glGetString without a context.<br>
><br>
> -Brad<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br><br>
</div>