[SDL] Using SDL_GetTicks() before SDL_Init()
wizard at syntheticsw.com
Sat Dec 15 03:07:41 PST 2007
> Is it officially needed to call SDL_Init() before using SDL_GetTicks()?
> I can see that the other platforms will not crash, as they don't use
> division in there, dividing by a value initialized at SDL_StartTicks()
> time, but most of them will also return "invalid" values.
I don't know if it is necessary, but the easy way
around this is to do SDL_Init (SDL_INIT_TIMER) at the start
of your prgramm and then after that use SDL_InitSubsystem (...)
to init Video, Audio and that stuff.
More information about the SDL