Where is ClientMoveAndDisplay function called?

Post Reply
inakin
Posts: 9
Joined: Wed Jan 16, 2008 6:36 pm

Where is ClientMoveAndDisplay function called?

Post by inakin »

I want to know where is ClientMoveAndDisplay function called in bullet demos. I have seen that the simulation step is included in this function but I can't find where it is called.


thanks
User avatar
Dr.Shepherd
Posts: 168
Joined: Tue Jan 04, 2011 11:47 pm
Contact:

Re: Where is ClientMoveAndDisplay function called?

Post by Dr.Shepherd »

inakin wrote:I want to know where is ClientMoveAndDisplay function called in bullet demos. I have seen that the simulation step is included in this function but I can't find where it is called.


thanks
Actually, I start to think about this question today, and what I found is :
This function will be called in every frame, but it is not set as the display Callback function for OpenGL. Instead, the DisplayCallback function is set as the OpenGL Display Callback.

Anyone could tell me why it is set up in this way?
User avatar
Yann
Posts: 52
Joined: Wed Sep 28, 2011 8:36 am
Location: France
Contact:

Re: Where is ClientMoveAndDisplay function called?

Post by Yann »

Dr.Shepherd wrote: Anyone could tell me why it is set up in this way?
I guess that would be because the glut callback needs a C style function callback while the ClientMoveAndDisplay is the method of a class and can't be directly used by Glut.
Post Reply