org.sunflow.core.renderer

Class ProgressiveRenderer

Implemented Interfaces:
ImageSampler

public class ProgressiveRenderer
extends java.lang.Object
implements ImageSampler

Constructor Summary

ProgressiveRenderer()

Method Summary

boolean
prepare(Options options, Scene scene, int w, int h)
Prepare the sampler for rendering an image of w x h pixels
void
render(Display display)
Render the image to the specified display.

Constructor Details

ProgressiveRenderer

public ProgressiveRenderer()

Method Details

prepare

public boolean prepare(Options options,
                       Scene scene,
                       int w,
                       int h)
Prepare the sampler for rendering an image of w x h pixels
Specified by:
prepare in interface ImageSampler
Parameters:
w - width of the image
h - height of the image

render

public void render(Display display)
Render the image to the specified display. The sampler can assume the display has been opened and that it will be closed after the method returns.
Specified by:
render in interface ImageSampler
Parameters:
display - Display driver to send image data to