[vtkusers] Share graphical resources (e.g., VBOs) between multiple vtkRenderWindows

Ken Martin ken.martin at kitware.com
Fri Feb 26 10:38:06 EST 2016

My understanding is that what you are doing should work. After that you
should be able to create VBOs in one context and access them from the
other. But I've never tried it myself.


On Fri, Feb 26, 2016 at 10:32 AM, longbowzhang <longbowzhangchina at gmail.com>

> Hello Ken,
> Thanks a lot for replying.
> I tried to communicate between vtkRenderWindows via low-level
> Windows-specific function wglShareLists function.
> The whole process is:
> Assume we have two vtkRenderWindow objects (rwA, rwB).
> 1:
> HGLRC glrcA = rwA->GetGenericDisplayId();
> 2:
> and exactly after rwB is created, call
> glrcB = rwB->GetGenericDisplayId();
> wglMakeCurrent(NULL, NULL);
> BOOL error = wglShareLists(glrcA , glrcB);
> ...
> It seems like in this way it can work. I can use VBOs, which was created
> under rendering context of renderWindow A, at rendering context
> renderWindowB.
> To be honest, I am not 100% sure about correctness.
> Based on your vtk developing experience, could you tell if what I've done
> make sense?
> Thanks again.
> Best regards,
> Changgong
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Share-graphical-resources-e-g-VBOs-between-multiple-vtkRenderWindows-tp5736784p5736871.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160226/59c4b886/attachment.html>

More information about the vtkusers mailing list