Hi Rapahel,

[EMAIL PROTECTED] wrote:
>> doesn't window->render() do a swap? How does your render_IDB() function look?
> 
> in the Window Class hierarchy, only ClusterWindow,PassiveWindow and  
> XWindow Classes implements the swap() method, so I believe that only  
> the glutSwapBuffer() call could really swap buffers of a GlutWindow.  

Hm, nope:

dream: Source/WindowSystem 239 % grep -r ::swap .
./QT/OSGQGLWidget_qt.cpp:void OSGQGLWidget::swapBuffers(void)
./QT4/OSGQ4GLWidget_qt.cpp:void OSGQGLWidget::swapBuffers(void)
./Cocoa/OSGCocoaWindow.mm:void CocoaWindow::swap( void )
./WIN32/OSGWIN32Window.cpp:void WIN32Window::swap( void )
./GLUT/OSGGLUTWindow.cpp:void GLUTWindow::swap(void)
./CoreGL/OSGCoreGLWindow.cpp:void CoreGLWindow::swap( void )
./X/OSGXWindow.cpp:void XWindow::swap( void )
./Carbon/OSGCarbonWindow.cpp:void CarbonWindow::swap( void )

Pretty much all Windows implement swap(), including the GLUTWindow. You can 
probably use a PassiveWindow just as easily, and that doesn't do its own swap. 
The alterative is to actually add/remove the FBOViewport to the Window in 
question, then you don't have to worry about rendering and swapping.

Yours

        Dirk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to