2021-04-25 23:43:40 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "Containers/Array.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
class SceneUpdater
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
SceneUpdater();
|
|
|
|
|
~SceneUpdater();
|
|
|
|
|
private:
|
|
|
|
|
Array<std::thread> workers;
|
|
|
|
|
List<std::function<void(float)> pendingUpdates;
|
|
|
|
|
void work();
|
|
|
|
|
};
|
|
|
|
|
} // namespace Seele
|