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
Where is ClientMoveAndDisplay function called?
- Dr.Shepherd
- Posts: 168
- Joined: Tue Jan 04, 2011 11:47 pm
- Contact:
Re: Where is ClientMoveAndDisplay function called?
Actually, I start to think about this question today, and what I found is :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
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?
Re: Where is ClientMoveAndDisplay function called?
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.Dr.Shepherd wrote: Anyone could tell me why it is set up in this way?