below is what im talking about:

int d3d::EnterMsgLoop( bool (*ptr_display)(float timeDelta) );

i don't understand the bool (*ptr_display)(float timeDelta) bit

i think its a function pointer parameter type, so that it must point to a function that returns a value of type bool, and it must contain a single parameter of type float.

Let me know if im on the right track. I truly appreciate your help ; ;)

Recommended Answers

All 2 Replies

>Let me know if im on the right track.
You're spot on, well done. :)

>Let me know if im on the right track.
You're spot on, well done. :)

Thanks for that, i only realised when i asked the question some where in my head came the answer

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.