Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Jul 12, 2010 2:05 pm 
Offline

Joined: Tue Nov 03, 2009 8:33 am
Posts: 20
Hi , I am a student using BULLET, I found that the BULLET window is created by glut(OpenGl), now I want my Demo to show in the MFC window. I mean that I want my "boxes", my "cylinder" and my "constraint" in BULLET to show in MFC window.

PPS: I have added BULLET in a MFC project(a SDI project), I called MyDemo::clientMoveAndDisplay() and MyDemo::displayCallback in MyView::OnPaint(), MyDemo is a class inherited from DemoApplication in BULLET and MyView is a class inherited from CView in MFC. But I got an exception when the program ran into glutSwapBuffers() in funtion clientMoveAndDisplay() and displayCallback(). Then I delete glutSwapBuffers() and added SwapBuffers(dc) in OnPaint(). But the result is that I got nothing in my MFC window.

so, Is there anybody who can give me some advices, your suggestions will be greatly appreciated. Thank you very much!

Jet


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group