Nori
|
Render thread. More...
#include <block.h>
Public Member Functions | |
BlockRenderThread (const Scene *scene, Sampler *sampler, BlockGenerator *blockGenerator, ImageBlock *output) | |
Create a new rendering thread that fetches blocks from the specified block generator and writes output to a big ImageBlock instance that represents the entire image. | |
virtual | ~BlockRenderThread () |
Release all memory. | |
void | run () |
Main rendering thread loop. |
Render thread.
This class implements the main rendering logic, which consists of fetching work from a scheduler (in the form of rectangular image blocks to be rendered), processing it, and writing the output to a target buffer.
BlockRenderThread::BlockRenderThread | ( | const Scene * | scene, |
Sampler * | sampler, | ||
BlockGenerator * | blockGenerator, | ||
ImageBlock * | output | ||
) |
Create a new rendering thread that fetches blocks from the specified block generator and writes output to a big ImageBlock instance that represents the entire image.
virtual BlockRenderThread::~BlockRenderThread | ( | ) | [virtual] |
Release all memory.
void BlockRenderThread::run | ( | ) |
Main rendering thread loop.