2021-03-29 21:41:11 -04:00
|
|
|
#include "HostSuspendHook.h"
|
2021-03-26 17:05:38 -04:00
|
|
|
#include "HostSuspendCallArgument.h"
|
|
|
|
|
|
|
|
|
|
#include "DisplayDeviceManager.h"
|
|
|
|
|
|
|
|
|
|
#include "PLDrivers.h"
|
2021-03-29 21:41:11 -04:00
|
|
|
#include "IGpDisplayDriver.h"
|
2021-10-22 22:01:33 -04:00
|
|
|
#include "IGpInputDriver.h"
|
2021-03-29 21:41:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
2021-03-26 17:05:38 -04:00
|
|
|
void RenderFrames(unsigned int ticks)
|
2021-03-29 21:41:11 -04:00
|
|
|
{
|
2021-03-26 17:05:38 -04:00
|
|
|
PLDrivers::GetDisplayDriver()->ServeTicks(ticks);
|
2021-03-29 21:41:11 -04:00
|
|
|
DisplayDeviceManager::GetInstance()->IncrementTickCount(ticks);
|
2021-10-22 22:01:33 -04:00
|
|
|
|
|
|
|
|
const size_t numInputDrivers = PLDrivers::GetNumInputDrivers();
|
|
|
|
|
for (size_t i = 0; i < numInputDrivers; i++)
|
|
|
|
|
PLDrivers::GetInputDriver(i)->ProcessInput();
|
2021-03-29 21:41:11 -04:00
|
|
|
}
|
|
|
|
|
}
|