Hook up thread slices and eliminate some statics hiding in misc functions

This commit is contained in:
Magnus Norddahl 2017-02-04 15:51:54 +01:00
commit d9e545a519
12 changed files with 150 additions and 72 deletions

View file

@ -56,9 +56,10 @@
namespace swrenderer
{
RenderThread::RenderThread(RenderScene *scene)
RenderThread::RenderThread(RenderScene *scene, bool mainThread)
{
Scene = scene;
MainThread = mainThread;
FrameMemory = std::make_unique<RenderMemory>();
DrawQueue = std::make_shared<DrawerCommandQueue>(this);
OpaquePass = std::make_unique<RenderOpaquePass>(this);