[vtkusers] Using VTK in an existing OpenGL window (Win32)

Charl P. Botha c.p.botha at its.tudelft.nl
Wed Jun 12 10:20:57 EDT 2002


On Wed, Jun 12, 2002 at 10:13:13AM -0400, Ted Christiansen wrote:
> I need to use VTK in a window that is already setup for OpenGL on
> Win32.  My code will be notified that the OGL buffers are about to be
> swapped at which point I can use VTK to draw the necessary objects.
> Anyone have any ideas on how to go about doing this?

You could pass the window ID of the configured Window to the
vtkRenderWindow::SetWindowId() call, followed by a Render().  Have a look at
some of the widgets that combine VTK with the various widget sets to see how
this works.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/



More information about the vtkusers mailing list