How to know engine_frame was called at least once?

Posted By: LazyDog

How to know engine_frame was called at least once? - 03/22/07 00:03

Hi,

I have a function in an external language library that can't be called until engine_frame has executed at least once. I can't figure with the SDK to know if engine_frame has been called the first time.
I debugged and watched the ev variable after engine_open but it looks like everything is iniatialzed already and I can't tell if engine_frame was called yet.

I would like to make check inside the function and exit the function if engine_frame hasn't already been called. I now know that it can't be called until engine_frame has been called but people don't read help files so I trying to code defensively to prevent errors.

Is this information possible to be found with the engine SDK?

thanks,
Posted By: jcl

Re: How to know engine_frame was called at least o - 03/22/07 08:32

The easiest way is checking the frame counter (total_frames).
© 2023 lite-C Forums