Thanks  Wang Rui
  in PaintThreadProc I do
  {
   
   root->addchild();
  or root->removeChild();
  .....
  }
  YangXiao.

Wang Rui <[EMAIL PROTECTED]> 写道:
    Hi YangXiao,
   
  What have been done in your PaintThreadProc()? Have you created a new widget 
on top of the OSG viewer window and tried to update it? If you want to do so, 
you'd better get the handle of viewer window first, otherwise your widget will 
surely blink.
   
  Wang Rui

  2008/10/27 YangXiao <[EMAIL PROTECTED]>
    Hi everyone:
                  When i update my scene in PaintThreadProc() function,
  I found my windows to blink ( to  twinkle).
  Why ?
   
   while(!viewer.done())
 {
  if (PeekMessage(&msg,NULL,0,0, PM_REMOVE))
  {
   TranslateMessage(&msg);
   DispatchMessage(&msg);
  }
    if (PaintThreadProc(hWndPaint,root.get(),viewer) == -1)
  {
   
   viewer.setQuitEventSetsDone(true);
   break;
  }
  viewer.frame();
         
 }
   
  Best regards.
  YangXiao.
    
---------------------------------
  雅虎邮箱,您的终生邮箱!   

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

  


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


       
---------------------------------
 雅虎邮箱,您的终生邮箱!
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to