Starting to work on the World Optimiser sequence.

This commit is contained in:
Godzil
2020-03-11 09:09:30 +00:00
parent 441d758845
commit 3a2d21b787
4 changed files with 712 additions and 0 deletions

View File

@@ -187,6 +187,15 @@ Colour World::refractedColour(Computation comps, uint32_t depthCount)
return Colour(hitColour.x, hitColour.y, hitColour.z);
}
void World::finalise(WorldOptimiser &opt)
{
/* First lock eveyrything */
this->worldGroup.lock();
/* Now run the optimiser */
opt.run(&this->worldGroup);
}
void World::dumpMe(FILE *fp)
{
int i;