Re: [wxVTK] Double buffering
Brought to you by:
malat
|
From: Pierre F. <Pie...@so...> - 2009-02-18 19:28:57
|
I had a similar issue that I solved by changing the default
constructor of the class wxVTKRenderWindowInteractor to:
wxGLCanvas((wxWindow*)(NULL), wxID_ANY, wxDefaultPosition,
wxDefaultSize, 0, wxT("glcanvas"), attributes)
where attributes is defined as:
int attributes[5] = {
WX_GL_DOUBLEBUFFER,
WX_GL_RGBA,
WX_GL_DEPTH_SIZE,
16,
0
};
which enables double buffering for wxGLCanvas.
My two cents.
Pierre.
On Feb 18, 2009, at 7:08 PM, Joshua Pedrick wrote:
> I've successfully compiled wxVTK and have integrated it into my
> application. The trouble I am having is that if I use wxGLCanvas as
> the sub-class I can't get double buffering to work. If I use wxWindow
> double buffering works, but the window only refreshes in response to
> VTK events and not wx events. Any hints?
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Wxvtk-users mailing list
> Wxv...@li...
> https://lists.sourceforge.net/lists/listinfo/wxvtk-users
|