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

Reply via email to