[vtk-developers] vtkgl::LoadExtension not exported
Burlen Loring
burlen.loring at gmail.com
Wed Apr 17 17:24:01 EDT 2013
Hi Kathleen,
Have you tried to use the vtkOpenGLExtensionManager? It has these
functions. If you initialized it with an vtkOSOpenGLRenderWindow it
should be able to load the extensions. You probably have a good reason
not to, but I'm curious to know why that doesn't work.
Burlen
On 4/17/2013 2:01 PM, Kathleen S. Biagas wrote:
> In our attempts to support OSMesa at runtime, we've run into a snag in
> that vtkgl::LoadExtension and vtkgl::GLVersionExtensionsString are not
> exported, and thus not accessible in our implementation.
>
> Are there any objections or unforseen-on-my-part consequences to
> modifying ParseOGLExt.cxx to export those symbols?
>
> Something along the lines of:
>
> Left file: /VTK-Unmodified/Utilities/ParseOGLExt/ParseOGLExt.cxx
> Right file: /VTK-Modified/Utilities/ParseOGLExt/ParseOGLExt.cxx
> 693c693
> < hfile << endl << " int LoadExtension(const char *name, "
> ---
>> hfile << endl << " extern int VTKRENDERINGOPENGL_EXPORT
> LoadExtension(const char *name, "
> 696c696
> < hfile << endl << " const char *GLVersionExtensionsString();" <<
> endl;
> ---
>> hfile << endl << " extern VTKRENDERINGOPENGL_EXPORT const char
> *GLVersionExtensionsString();" << endl;
>
>
> Kathleen
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
More information about the vtk-developers
mailing list