OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

blink question!


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
YangXiao
Guest





PostPosted: Mon Oct 27, 2008 3:05 am    Post subject:
blink question!
Reply with quote

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.

??»¢??ÏÀ£¬?úµ????ú??ÏÀ£¡

------------------
Post generated by Mail2Forum
Back to top
Wang Rui
Guest





PostPosted: Mon Oct 27, 2008 3:49 am    Post subject:
blink question!
Reply with quote

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 < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Quote:
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
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Question about method of building osgQt trexmsuee Build system [build] 1 Thu Apr 11, 2019 2:22 pm View latest post
No new posts Really basic question light/material ... dhhabyc General 0 Tue Apr 09, 2019 4:53 pm View latest post
No new posts Question about linking OSG 3D content... Zachary1234 General 0 Mon Mar 25, 2019 6:14 am View latest post
No new posts Question about security of shader dev... Werner Modenbach General 5 Wed Jan 30, 2019 5:50 pm View latest post
No new posts Happy New Year to all OSG Users Chris Hanson General 0 Mon Jan 07, 2019 10:17 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP