Let the platform handle the game loop in case it has some existing callback method (like web does)
This commit is contained in:
parent
41a3934f2a
commit
f95bd9d997
1 changed files with 105 additions and 16 deletions
|
|
@ -2100,3 +2100,14 @@ double GetTimeSeconds(void)
|
|||
|
||||
return currentTime;
|
||||
}
|
||||
|
||||
extern void ProcessSingleFrame();
|
||||
|
||||
void PlatformRunGameLoop()
|
||||
{
|
||||
while (CORE.Window.updateCallback != NULL)
|
||||
{
|
||||
ProcessSingleFrame();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue